Trending News
Home / Web Development / HTML / Concatenate two variables or strings – PHP

Concatenate two variables or strings – PHP

Hi Friends,
The DOT(.) operator is used to concatenate two variable or string in PHP. The ‘.’ operator which returns the concatenation of its right and left string.

And also ‘.=’ operator used append the arguments on the right side to the left side arguments.

Example 1

Example 2

COMMA is not concatenating it just used to echo one by one and in that way complete string appears together.In javascript PLUS(+) is used as concatenation operator.

If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

Loading Facebook Comments ...
Social Media Auto Publish Powered By :