As a coder who picked up on Java and JavaScript string concatenation ("text" + var + "more text"
), in PHP I always used "text" . $var . "more text"
. That may change soon, though, as it seems that embedding variables in string literals is a bit faster.