Publish by Sifur Rahaman March 15, 2021, 5:10 am
Many more PHP operators are uses in PHP Developers. Operators are used to perform operations on variables and values. All PHP Operators Divided by different groups, like below-
1. Arithmetic operators: Arithmetic operators are used only numeric values to perform common methmetical operations like- Addition(+), Subtraction(-), Multiplication(*), Division(/), and Modulus(%). This Operators are used a PHP developer left and right. So, we will present more example to next tutorials.
Addition(+), Subtraction(-), Multiplication(*), Division(/), and Modulus(%)
2. Assignment Operators: Assignment Operators is simple (=). This Operators is use onle set value left operand. For exmple:( $a = 10; ). This example means 10 is a assignment value and $a is a operand.
(=)
For exmple:( $a = 10; )
10
$a
3. Comparison Operators: Comparison Operators are (==), (===), (!=), (!==), (>), (<), (>=), (<=).
(==)
(===)
(!=)
(!==)
(>)
(<)
(>=)
(<=)
4. Increment / Decrement Operators: Increment / Decrement Operators are (++$x), ($x++), (--$x), ($x--).
(++$x)
($x++)
(--$x)
($x--)
5. Logical Operators: Logical operators are used make different conditional statements. Most popular Logical Operators are (and), (or), (&&), (||), (!).
(and)
(or)
(&&)
(||)
(!)