Created
May 23, 2012 13:54
-
-
Save madbonkey/2775355 to your computer and use it in GitHub Desktop.
PHP double vs single quotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<?php | |
$foo = 'bar'; | |
echo $foo."\n".$foo; | |
echo "$foo\n$foo"; | |
echo '$foo\n$foo'; | |
?> | |
</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment