How to Concatenate String in PHP?

I am explaining you, how to concatenate strings in PHP.
if you want to concatenate strings, you can use the concatenation operator .

Example:

<?php 
$string1 = "webdeveloperindia.in is ";

$string2 = "learning tutorial website";

echo "$string1" . "$string2";

?>

Result:

webdeveloperindia.in is learning tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *

− 1 = 8