Putting the ++ after returns the variable then increments it, having the ++ before increments it then returns the variable.
Meaning if you echo $a++, it will display $a then add it to one after is has passed it value. If you display ++$a, it will show the value of $a added by one.
|