O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix C. OPERATORS

OperatorOperation It Performs
+Addition
Subtraction
*Multiplication
/Division
%Modulo Division
++Increment
Decrement
<Is Less Than
>Is Greater Than
<=Is Less Than or Equal To
>=Is Greater Than or Equal To
==Is Equal To
!=Is Not Equal To
AND &&And
ORl ||Or
XORExclusive Or
!Not
&And
|Or
^Exclusive Or
~One's Complement or NOT>>Shift all bits to the right
Shift all bits to the left
.Concatenate
$Reference a Variable
&Reference Variable Storage
->Reference a Class Method or Property
=>Set argument default or assign array element index
@Suppress Function Errors
?Tertiary Conditional Expression
=Assign right side to left side
+=Add right side to left side
-=Subtract right side from left side
*=Multiply left side by right side
/=Divide left side by right side ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required