What does a . (dot) do in PHP?

Viewed 56789

What does the following command do in PHP?

. $string   // ($string is something which I declared in the program)
5 Answers

Two string operators are available. The first is the concatenation operator ('.') that returns its right and left argument concatenation. Second is the concatenation operator of assignment ('.='), which adds the right-hand argument to the left-hand argument. For further details, please read Assignment Operators

Related