I want to know if the below code:
<?php
printf ("%s", $some_variable);
?>
is more efficient than:
<?php
echo "$some_variable";
?>
One common complaint of variable interpolation is that it is very slow. I want to know if there is a better alternative to variable interpolation that doesn't make one's code as messy as:
<?php
echo $first_var, ' some string ', $second_var;
?>