To keep it short, why does
<?php
$var = 'Calc: ' . 5 - 5 . '!';
echo $var;
?>
output:
-5!
Instead of, let's say:
Calc: 0 . '!'
Or another variation of this problem:
<?php
echo "time is" . time()-2;
?>
Prints:
-2
Notice the corruption, the first "string" with the first int is chopped off! Though, < $var = 'Calc: ' . (5 - 5) . '!'; > (does work ok), I'm trying to understand what the key concept behind this behavior is.