I was just playing around with PHP, can someone please explain to me why the code below prints out 5566 instead of 6666?
$a = 5;
$b = $a;
echo $a++ . $b++;
echo "\n";
echo $a++ . $b++;
Does it echo $a then add 1 to it? Why doesn't it echo the result?
EDIT: Another simple example for anyone viewing:
$a = 5;
$b = $a++;
echo $a++ . $b;
Produces 65