[theme-reviewers] usage of single quotes and double quotes in PHP
Satish Gandham
satish.iitg at gmail.com
Thu Mar 3 19:10:13 UTC 2011
Question here is not about consistency,
We use single quotes when we are not evaluating anything within the string.
echo "Hello World!" uses more cpu resources than echo 'Hello World'.
I want know which of these two is better.
<?php
echo "This is a string with variable $test_variable"
?>
<?php
echo 'This is another variant of the above statement '.$test_variable
?>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110304/f060f719/attachment.htm>
More information about the theme-reviewers
mailing list