[theme-reviewers] usage of single quotes and double quotes in PHP
Chip Bennett
chip at chipbennett.net
Thu Mar 3 19:15:10 UTC 2011
And our point is: this is the THEME REVIEW mail list. Your question is not
related to Theme Review, per se. It might be more relevant on the WP-Hackers
mail list, perhaps?
Chip
On Thu, Mar 3, 2011 at 1:10 PM, Satish Gandham <satish.iitg at gmail.com>wrote:
> 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
> ?>
>
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110303/c8b433b0/attachment.htm>
More information about the theme-reviewers
mailing list