If you don’t know the difference between using double quotes or single quotes when using Strings in PHP, you should. The PHP Manual page for Strings covers all this, but basically strings created with double quotes will be parsed by PHP. This example shows what I mean:
// they both output 'Yahoo Google' $str = 'Google'; echo 'Yahoo' . $str; echo "Yahoo $str";
At first glance you might think, who cares? The key note is deep in the manual page:
Parsing variables within strings uses more memory than string concatenation. When writing a PHP script in which memory usage is a concern, consider using the concatenation operator (.) rather than variable parsing.