data-id="1190000004881701">
PHP tag
Form one
1 2 |
|
Form two
1 2 |
|
Form three
This form needs to rely on a configuration in php.ini
short_open_tag = On
1 2 |
|
If there is no html behind php, can it be omitted?>
PHP case-sensitive feature
Variable differentiation
Constant differentiation
Others are not differentiated
About points The number
should be added to every sentence;
The last sentence in a php tag does not need to be added;
If the end tag is omitted, the last sentence cannot be omitted;
About comments
Single-line comments //
or #
multi-line comments /% %/
Variables
There is no simple definition
isset to determine whether the variable exists
1 2 3 |
|
unset deletes variables
1 2 3 4 |
|
The variable names that can be used
start with letters or underscores
followed by any number (including 0) of letters, numbers and underscores
Naming rules
Camel nomenclature: the first word is lowercase, and the first letter of each subsequent word is capitalized
1 |
|
Pascal nomenclature: the first letter of each word is capitalized
1 |
|
underscore separation method: each Words are lowercase and separated by underscores
1 |
|
Variable value transfer method
Value transfer
The values of two variables do not affect each other
Reference transfer
Values affect each other
1 2 |
|
The above introduces 2016-04-06, including the content of 2016. I hope it will be helpful to friends who are interested in PHP tutorials.