0

Can someone explain how the increment and decrement in php works?

10th Sep 2016, 12:16 AM
Aaron
2 Answers
+ 1
$a=10 $a++ means $a=$a+1 so increment operater gives 11 as its value $a-- means $a=$a-1 so decrement operater gives 9 as its value.
10th Sep 2016, 1:37 AM
shinoop sp
shinoop sp - avatar
0
++ is +1 -- is -1
11th Sep 2016, 5:54 PM
ELECTR0ZED