php statement:
A php file usually contains HTML tags and some php statement segments.
A php statement segment starts from the . The php tag is used to separate other php statement segments and html. The php statement is written between the two tags, and multiple lines of PHP statements can be written.
Note: The PHP statement ends with a semicolon. If there is no semicolon, the file will continue to be parsed until the next semicolon, and the intervening spaces and newlines will be ignored.
In PHP, carriage returns, line feeds, spaces, and tabs are all considered spaces, and the PHP parser will treat them as if they do not exist.
For example:
echo 'Hello World'; >
php variable type:
< p> PHP has eight basic variable types, including the following:Four scalar types:
boolean (Boolean)
integer ( Integer type)
float (floating point type, also called double)
string (string)
Two composite types:
< p> array (array)object (object)
Finally there are two special types:
resource (resource)
NULL (NULL)
In addition, PHP also has some pseudo-types:
mixed
number
callback