The dot operator has the same precedence as +
and -
, which can yield unexpected results.
That technically answers your question... if you want numbers to be treated as numbers during concatenation, just wrap them in parentheses.
<?php echo '11hello ' . (1 + 2) . '34';?>