There are also many various PHP operators and operators in php. This article mainly shares with you a detailed introduction to PHP operators and operators. I hope it can help you.
This article introduces the operators and operators commonly used in PHP:
(1) Arithmetic operators: String operator: . . (read: dot operator, string concatenation operator)
(3) Assignment operator: = += -= /= %= .= (.= is read as: Dot equals, connects a string to itself)
(4) Comparison operator: , | or or ! not & |
(6) bit operator: | Enter)
(7) Other operators: ? : (ternary form of if-else) @ (error control character, even if an error occurs, ignore the error message and continue to execute the following code) => (k=>v of the array) ->(Object ->Member) ::(Class::Static member) &(Get address) $(Use before variable)
Note: If there is no special explanation, it means that it has the same function as other languages.
Related recommendations:
php operator collectionSimple questions about php operator priority
The above is the detailed content of Detailed introduction to PHP operators and operators. For more information, please follow other related articles on the PHP Chinese website!