Joined February 2012
·

Alexandre Boucey

France
·
·
·

Be carefull as ++$i and $i++ is not the same. In the first case, the incrementation is made before getting the value, while in the second case it's after.

$i = 5;
echo $i++; // = 5
echo $i; // = 6
$i = 5;
echo ++$i; // = 6
echo $i; // = 6
Achievements
109 Karma
0 Total ProTip Views