Operators are used to perform operations on variables and values.
PHP Arithmetic Operators -
+, -, *, /, % (Modulas)
PHP Assignment Operators -
=, =+, =-, =*, =/, =%
PHP Comparison Operators-
==, ===, < , <=, >, >=, <> (Not Equal), !=, !==
PHP Increment / Decrement Operators -
++$x - Pre Increment
$x++ - Post Increment
--$x - Pre Decrement
$x-- - Post Decrement
PHP Logical Operators -
and - And
or - Or
xor - Xor
&& - And
|| - Or
! - Not
PHP String Operators -
. Concatenation
.= - Concatenation assignment
0 comments
Post a Comment