Operators are signs or symbols that are used to perform operations with variables and values. Like: +, -, =, ==, > etc.
In the following example, the
+ plus is an operator and it is used to perform additions.
<?php $x = 5; $y = 4; echo $x + $y; ?>
In PHP, there are so many operators. PHP divides these operators into the following groups –
This is a list of the most used operators. But in PHP, there are also more operators. Check out the list of all operators.