Php Data Type 01

Source: Internet
Author: User
1. data Type: scalar type: INTEGER (int), float (float), string (string), boolean (boolean) conforming type: array, object) other types: resource, NULL2. $ a123; echo11 $ a; $ a indicates echo11 $ a11; $ a indicates no. php $ a11 indicates a by default.

1. data Type: scalar type: INTEGER (int), float (float), string (string), boolean (boolean) conforming type: array, object) other types: resource, NULL 2. $ a = 123; echo 11 $ a; // $ a can call echo 11 $ a11; // $ a cannot be used. By default, php $ a11 is

1. Data Type:

Scalar type: INTEGER (int), float, string, boolean)

Conformity type: array, object)

Other types: resource, NULL

2. $ a = "123 ";

Echo "11 $ a"; // $

Echo "11 $ a11"; // $ a cannot be used. php $ a11 is a variable by default. The solution is as follows:

Echo "11 {$ a} 11"; // php only parses the variables in braces

3. There cannot be anything before the end of the delimiters. It must be written in the top line.

$ A = <




123




Xxx; // write in the top line
Echo $;

4. boolean type with a value of false:

FALSE, 0, 0.0, empty string, string 0, NULL, empty array

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.