Data type
PHP has only integers, floating-point numbers (or real number, double-precision numbers), and three basic data types of strings. Strings are available in single and double quotes, but have different meanings: only double quotes can use variables.
Variable
The variable is preceded by a "$", which uses a variable without having to specify (or define) the type of the variable beforehand, and different types of data can assign values to the same variable. However, to use global variables, you must specify (or add them to the $globals[] array). Use static variables to describe them.
Array
Using an array does not require a description of its type and size and can be used directly. The elements of the same array can have different data types.
Operator
The C-language operator is largely preserved. Added string connector "." (use "," when accessing an object member.) Added the "= =" operator to assign an initial value to the array. In addition, logic with ("&&") and Logic or ("| |") Also available with "and" and "or", adding a logical XOR or "XOR"
Basic statement
Requires mastering If-else statements, switch-case statements, for statements, while statements, do-while statements, continue statements, break statements. Require statements and include statements for inserting a disk file
Definition and use of functions
Using function to define functions, you do not need to describe function types and parameter types.
Function name (parameter 1, parameter 2, ...). )
{Statement 1;
Statement 2;..
}
Excerpt from bing7599069 's column
http://www.bkjia.com/PHPjc/478486.html www.bkjia.com true http://www.bkjia.com/PHPjc/478486.html techarticle data type PHP has only integers, floating-point numbers (or real number, double-precision numbers), and three basic data types of strings. Strings are available in single and double quotes, but with different meanings: only ...