PHP - Introduction Operator Types


Operators in PHP can be grouped into ten types, as follows:

Arithmetic Perform common arithmetical operations, such as addition and subtraction
Assignment Assign values to variables
Bitwise Perform operations on individual bits in an integer
Comparison Compare values in a Boolean fashion and true or false is returned
Error Control Affect error handling
Execution Cause execution of commands as though they were shell commands
Incrementing/Decrementing Increment or decrement a variable's value
Logical Boolean operators such as and, or, and not that can be used to include or exclude
String Concatenates strings
Array Perform operations on arrays

Related Topic