PHP Operators Operators are used to perform operations on variables and values.
PHP divides the operators in the following groups:
Arithmetic operators Assignment operators Comparison operators Increment/Decrement operators Logical operators String operators Array operators PHP Arithmetic Operators The PHP arithmetic operators are used with numeric values to perform common arithmetical operations, such as addition, subtraction, multiplication etc. PHP Assignment Operators The PHP assignment operators are used with numeric values to write a value to a variable.
The basic assignment operator in PHP is "=". It means that the left operand gets set to the value of the assignment expression on the right.