[wp-hackers] usage of single quotes and double quotes in PHP

Satish Gandham satish.iitg at gmail.com
Thu Mar 3 21:43:07 UTC 2011


*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
**  ?>


Regards
Satish Gandham
*


More information about the wp-hackers mailing list