Menu
Categories
 
Misc. PHP Notes

Double quoted string vs single quoted string:
single quotation marks between a string mean that the PHP interpreter doesn’t have to scan the string for variables, as opposed to double quotation marks. (Use single quote would speed up the PHP interpreter because it does not look for variables.)

PHP Output:
echo seems to be faster than print. The reason is that echo does not return a value while print does.

*