Skip to content

Instantly share code, notes, and snippets.

@smichaelsen
Created February 4, 2013 10:51
Show Gist options
  • Save smichaelsen/4706112 to your computer and use it in GitHub Desktop.
Save smichaelsen/4706112 to your computer and use it in GitHub Desktop.
String concatenation done right
/* 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