For Example:
<?php
//Consider this string
$howdy = 'everyone';
$foo = 'hello $howdy';
$bar = "hello $howdy";
// Concatenating this strings
$howdy = 'everyone';
$foo = 'hello $howdy';
$bar = "hello $howdy";
?>
$foo outputs to “hello $howdy” and $bar gives us “hello everyone”. That’s one less step that PHP has to process. It’s a small change that can make significant gains in the performance of the code.
0 comments:
Post a Comment