The poor parser is easily confused

PHP can just cast numbers to strings, right?

<?php
print "a"."2";
?>

<?php
print "a".2;
?>

Results
a2

PHP Parse error:  syntax error, unexpected '.2' (T_DNUMBER) in Command line code on line 1