Created
February 4, 2013 10:51
-
-
Save smichaelsen/4706112 to your computer and use it in GitHub Desktop.
String concatenation done right
This file contains hidden or 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
/* PHP: dot */ | |
$name = 'Sebastian ' . $lastname; | |
/* JS: plus */ | |
var name = 'Sebastian ' + lastname; | |
/* CSS: whitespace */ | |
content: 'Sebastian ' attr(lastname) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment