PHP Operators
Posted by Daniel at 2:17 pm
PHP Operators are very important, if PHP variables is the building blocks of PHP programming PHP Operators is the tool that lets you do something useful with variables. php comes with many useful operators such as Assignment Operator, Arithmetic Operator, String Operator, Comparison Operator and Logical Operator.
Below is a list of PHP Operators and its function
| PHP OPERATORS | |
|---|---|
= |
Assignment |
+ |
Addition |
- |
Subtraction |
* |
Multiplication |
/ |
Division |
% |
Modulus |
. |
String Concatenation |
== |
is equal to |
=== |
is equal to and of the same type |
<> or != |
Not equal to |
< |
Less than |
> |
Greater Than |
<= |
Less than or Equal to |
>= |
Greater than or Equal to |
&& |
Logical AND |
|| |
Logical OR |
xor |
Logical XOR |
! |
Logical NOT |
++ |
Increment or Addition by 1 |
| – | Decrement or Subtraction by 1 |
Gee….perhaps I got to start learning about it.
I’m totally blind about PHP :B
uardani’s last blog post..Buxilliard Suspended