Annotation symbol
:
// Single line Annotation
/**/Multi-line Annotation
Use of quotation marks
''Single quotes, no meaning, can be taken without any processing;
"" Double quotes, PHP dynamic processing and output, usually used for variables.
Variable form:
True is true;
The other is false.
Common variables:
String string (numbers, Chinese characters, etc)
INTEGER (1, 2, 3, 4, 5, 0,-1,-2, and so on)
Double Floating Point Number (decimal point)
Array
Object
Common symbols
/"Double quotation marks
// Backslash
/N line feed
/R output
/T hop (Tab)
Operator number
+ Addition operation-subtraction operation
* Multiplication/Division
% Get remainder + + accumulate
-- Accumulate 1. Add strings
Set operation
= Place the value on the right to the left (yes)
+ = Add the right value to the left
-= Reduce the value on the right to the left
* = Multiply the value on the left by the value on the right.
/= Divide the value on the left by the value on the right
. = Add the string on the right to the left
Bitwise Operator
&
| Or
^ Exclusive (XOR)
<Shift left
> Shift to the right
~ 1 Population
Logical operation
<Less> greater
<= Less than or equal to> = greater than or equal
! = Not equal to & and
| Or! No
Other operators
$ Variable symbol
& Variable indicators (before a variable)
@ Do not display the error message (before the function)
-> Object methods or attributes
=> Array element value
? : Ternary Operator