Possible Duplicate:
Reference – What does this symbol mean in PHP?
I can’t seem to find the answer of what the difference is between
somephp" + foo + "morephp
and
somephp" . foo . "morephp
Dreamweaver recognizes both as syntactically correct. I just need an article link or explanation as the difference between them? Thanks! 🙂
My specific circumstance is I’ve got – CHILD_POS – which needs to be inserted into a static string. Basically… :
echo 'some stuff goes here' +/. CHILD_POS +/. 'some more stuff goes here';
I’m unsure whether to use (+) or (.)
The
.character is specifically for string concatenation in PHP. The+symbol is for math operations.See the appropriate PHP manual pages:
String Operators
Arithmetic Operators