PHP First Day Supplement

Source: Internet
Author: User

1. Integer overflow: int type number out of range is automatically converted to float type.

2. Variables in single quotes are not compiled.

Variables in double quotes are compiled and automatically replaced with variable content.

3. Output pi with echo pi ();

4. Type conversions for variables.

1. (type) variable name

2.settype (variable name, "type")

5. Determine String type

Is_ type name (variable name)

6. Constant default case sensitive, with define (constant name, "constant")

7. Variable assignment of three ways:

1. Direct assignment $abc= "FGJNLK";

2. Assigning values to variables

$ABC = "Agoijh";

$r = $ABC;

3. Reference Assignment

$ABC = "Agoijh";

$r =& $abc;

The difference between 2 and 3 is that after you change the value of $ABC 2, the value is still not the same, and 3 is changed to the new value.

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.