PHP logo

PHP.  It’s been a little while since I had to deal with you but, seriously, is this really a thing?

[php]$value = 10;
$temp = 0;
 
for($ctr = 0; $ctr < $value; $ctr++) {

echo "value + ctr: " . $value + $ctr . "<br>";
// this doesn’t work?!

$temp = $value + $ctr;
echo "value + ctr: " . $temp . "<br>";
// … but this does work?

}[/php]

Perhaps (hopefully) things have changed in PHP7?

Have your say!