php echo comma dot
php echo with comma is faster than dot
This is because PHP with dots joins the string first and then outputs them,
while with commas just prints them out one after the other.
<?php
echo 'aaa' . 'bbb';
echo 'aaa' , 'bbb';
take note
Comma only work when using the echo language construct
and you can’t return a comma delimited variable.
like below:
<?php
return 'aa' . 'bb'; // pass(通过), nothing is wrong
return 'aa' , 'bb'; // parse(解析) error: syntax(语法) error, unexpected ',' ...
originate from
–>PHPBENCH<–
such as:
double (") vs. single (') quotes
For vs. While
etc...