Possible Duplicate:
Is there a performance benefit single quote vs double quote in php?
I am wondering if PHP code takes a performance hit when using "
s when defining strings containing no variables, compared to '
where the extra parsing is not performed.
For example, PHP will try to parse variables inside strings defined by "
but not '
.
$myString = "Greetings earthlings!";
echo '$myString'; //literally outputs the string '$myString'
echo "$myString"; //literally outputs the string "Greetings earthlings"
So my question is, all this time I've been writing code like this:
echo "Greetings earthlings";
Have I been wasting cycles? Or is PHP smart/optimized enough to know I really meant:
echo 'Greetings earthlings';
?