2, join operator (string operator) (.)
(1) String and string connections need to be used
(2). Strings and variables need to be used when connecting
(3) Variable and string connections need to be used
(4) Variable and variable connections need to be used
3. Assignment operators
Note: Remember that the equals sign here is not equal to the meaning of the assignment
= Assign a value or table but the result to a variable
+ = Assigns the result of the variable and the assigned value to the variable
-= Assigns the result of the variable to the variable when it is subtracted from the assigned value
*= assigning a variable to a variable after multiplying it with the value assigned
/= assigning a variable to a variable after dividing it with the assigned value
%= assigning a variable to a variable with the result of the assigned value
. = Assigns a variable to a variable when it is connected to the value assigned
4. Comparison operators
> Returns True if the left is greater than the right, otherwise false
< returns True if the left side is less than the right side, otherwise false
>= returns True if the left is greater than or equal to the right, otherwise returns false
<= is less than or equal to return true if the left is less than or equal to the right return false
= = equals the value of the operands on both sides returns true otherwise returns false
= = = equals both values equal and the type is equal returns True otherwise returns false
! = or <> returns True if both values are not equal, otherwise false
Returns False if the!== is equal to the value on both sides of the same type or returns True
5. Logical operators
(1) && or (and) logic and judgment conditions aside false is false
(2) | | or (or) logic or judgment condition is true on one side
(3)! Logical non-judging condition true change false false change true
(4) XOR logic XOR or judgment condition is the same false difference is true
6. Other operators
? : Ternary operators can provide simple logic judgments? The following is true interval: the back is a false interval
' Anti-quote (') is the execution operator PHP will attempt to execute the contents of the anti-quote as an external command and return the content entered at it
The @ ERROR control operator, which is placed in front of a PHP expression to control any errors that may be generated can ignore point error messages
= = Array subscript specifier Specifies the subscript and value of an array by this symbol
member properties and member methods for object member access symbols in Access objects
The instanceof type operator is used to determine whether an object is from a specified object class
Reference: https://www.w3cschool.cn/php/
PHP (iv)