Skip to content

Instantly share code, notes, and snippets.

@madbonkey
Created May 23, 2012 13:54
Show Gist options
  • Save madbonkey/2775355 to your computer and use it in GitHub Desktop.
Save madbonkey/2775355 to your computer and use it in GitHub Desktop.
PHP double vs single quotes
<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