[theme-reviewers] usage of single quotes and double quotes in PHP

Edward Caissie edward.caissie at gmail.com
Thu Mar 3 19:43:41 UTC 2011


Didn't I say that nearly 5 hours ago?!

On Thu, Mar 3, 2011 at 2:15 PM, Chip Bennett <chip at chipbennett.net> wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/bee1af07/attachment.htm>


More information about the theme-reviewers mailing list