PHP operators refer to things that can produce another value by giving one or more values; PHP operators include arithmetic operators, assignment operators, increment\decrement operators, comparison operators , logical operators, array operators, ternary operators, combinatorial comparison operators.
#The operating environment of this article: Windows 7 system, PHP version 7.1, Dell G3 computer.
What do php operators mean?
An operator is something that takes one or more given values (an expression, in programming jargon) and produces another value (thus the entire structure becomes an expression).
Operators can be grouped according to how many values they can accept. Unary operators can only accept one value, such as ! (logical negation operator) or (increment operator). Binary operators accept two values, such as the familiar arithmetic operators - (add) and - (subtract), which are the majority of PHP operators. Finally, there is the only ternary operator ? :, which accepts three values; it is often simply called the "ternary operator" (although it might be more appropriate to call it a conditional operator).
php operators include arithmetic operators, assignment operators, increment\decrement operators, comparison operators, logical operators, array operators, ternary operators, and combined comparison operators.
See the Operators chapter for a complete list of PHP operators.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of what does php operator mean. For more information, please follow other related articles on the PHP Chinese website!