Misc. PHP Notes

person Jason Huangaccess_time October 20, 2009

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.