PHP and string addition

One of the problems of working on a website, is you’re constantly switching between Javascript and PHP.  Nothing worse than trying to track down an error to discover you’ve concatenated two strings in PHP thinking it was javascript…

$string1 + $string2 <> $string1 .  $string2

You’d think the $ in front of the variable names would have been a clue…

 

Leave a Reply