28 Jan 2014

OPERATORS IN PHP :- Concatenation

The concatenation operator ( . ) returns the combined value of its right and left values.
The variable's data type has an affect on the output.

example :-

















The concatenating assignment operator ( .= ), which appends the variable value on the right side to the variable on the left side. We use this method many times to compound and keep adding to one variable so it will retain its current value, and just append the new values onto the current value's tail end.

example :-