S.no | Operator | Operation |
1 | Addition (+) | 4+5=9 |
2 | Subtraction (-) | 10-2=8 |
3 | Multiplication (*) | 2*4=8 |
4 | Division (/) | 15/5=3 |
5 | Modulus (%) | 5%2=1, 10%8=2, 10%2=0 |
6 | Increment (++) | x=5 x++ is equivalent to x=x+1 x=6 |
7 | Decrement (--) | x=5 x—is equivalent to x=x-1 x=4 |
Wednesday, November 21, 2012
PHP Operators
Labels:
PHP,
Programming
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment