Forum : How to concatenate two strings ?
Brief description  about Online courses   join in Online courses
View Balu  Prasad 's Profile

How to concatenate two strings ?

Concatenate two strings....
Asked by Balu Prasad | Mar 17, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Balu,
There is only one string operator in PHP.
The concatenation operator ( . ) is used to put two string values together.
To concatenate two string variables together, use the concatenation operator.
<?php
$str1 = "Hello Anand shukla.";
$str2 = "What is this ?";
Echo $str1."".$str2;
?>
OUT PUT: Hello Anand shukla What is this
Mar 17, 2010