What's the differences between a ' (single quote) and " (double quote) in PHP programming ? They act quite the same. However, for double quotes, PHP checks the contents for a variable to interpolate and escape characters like the \n newline. This makes your scripts SLOWER. It's doesn't really matters if you're writing a small script, but it will help PHP parse faster in a larger script.
Consider the following:
[ Hide ] $name = 'Darren'; // This one's better
$name = "Darren";
That doesn't mean that double quotes are useless. It helps on readability in some situations:
[ Hide ] echo '<a href="' . $url . '">' . $text . '</a>';
echo "<a href=\"$url\">$text</a>";
// You cannot do a \n with single quote
echo "\nThis is a new line\n";
Using
' or
" ? You should know which to use next time.