PHP

# PHP - operators

**arithmetic operators**- are used to perform mathematical operations. the following are basic operations between the arithmetic operators:

addition:**+**Subtraction:**-**multiplication:*****division:**/**modulo:**%**additive inverse:**-****logical**- three or four logical operations are available, exactly how much it depends on the particular programming language that we use. with these operations, we can solve any logical task or condition. these logical conditions are for example connections of comparing values according to certain rules, testing values. logical operations are mainly used in the execution of conditional statements.

logical and:**&&**,**and**logical or:**||**,**or**logical negation:**!****bitwise**- we have more of the bitwise operators, using the bitwise operator we can set or determine the specific bit in whole numbers.

bitwise left shift:**<<**bitwise right shift:**>>**bitwise and:**&**bitwise or:**|**bitwise not:**~**bitwise xor:**^****relational**- the main use of the relational operators is in control of conditional statements. thanks to these, we can decide which direction to continue the conditional statements, or for example, how many iterations of the cycle need to perform.

less than:**<**greater than:**>**less than or equal to:**<=**greater than or equal to:**>=**Equal to:**==**Not equal to:**!=****assignment**assignment:**=**

### Examples - PHP

Other pieces of example codes:PHP |
---|

if ($i==5) break; $y != 25 $a1 = false && false $x * 2 / $y +5 631 ^ (0xF0 ^ $k) (10 - $j * 0.5) |

programming languages