PHP basic Syntax (i)

Source: Internet
Author: User

Plastic:
is to use integer positive integers and negative integers
Representation of shaping: int integer
NOTICE: Don't put quotes outside when you're writing plastic.

Floating point:
is the decimal 3.1415926.
Float floating point

Boolean value:
Male and female and false yin and yang right and wrong
True True false false

String:
is what you see in the textbook, need to show a sentence.
You need to display the output text.

Empty:
Kill a variable, or there is no such variable at all. does not exist. Null is treated as a dummy of the Boolean value!
1, non-existent variable
2, assign the variable directly to NULL
3, kill the variable.

The function can be used to view the type of the variable and to remove a variable from the function:

Var_dump (variable); Displays the output value and type, if the string also outputs the length

Unset (variable); To kill a variable.

PHP basic Syntax (i)

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.