A prefer to assign values within a string with sprintf, which allow me to replace the pattern easly :)
<?php $var = 'hello, ' . $world . '!';?>
vs.
<?php $var = sprintf('hello, %s!', $world);?>
A prefer to assign values within a string with sprintf, which allow me to replace the pattern easly :)
vs.