Examples
Input : string1: Hello string2 : World! Output : HelloWorld! Input : string1: geeksfor string2: geeks Output : geeksforgeeks
<?php
// First String
$a = 'Hello';
// Second String
$b = 'World!';
// Concatenation Of String
$c = $a.$b;
// print Concatenate String
echo " $c \n";
?>
<?php
// First String
$fname = 'John';
// Second String
$lname = 'Carter!';
// Concatenation Of String
$c = $fname." ".$lname;
// print Concatenate String
echo " $c \n";
?>
<?php
// First String
$a = 'Hello';
// now $a contains "HelloWorld!"
$a. = "World!";
// Print The String $a
echo " $a \n";
?>