How do i Concatenation String and Variable at PHP?

How do i Concatenation String and Variable at PHP?

There are two string operators. The first is the concatenation operator (‘.‘), which returns the

concatenation of its right and left arguments. The second is the concatenating assignment operator

(‘.=‘),which appends the argument on the right side to the argument on the left side.

concatenation operator
// String Variable
$bio= 'My Name is Jahidul Hasan';
// Concatenation Of String
$myBio = $bio." Zahid.";
// print Concatenate String
echo $myBio;
?>
Outpur: My Name is Jahidul Hasan Zahid
concatenating assignment operator
// String Variable
$bio = 'My Name is Jahidul Hasan';
// Concatenation Of String
$bio .= " Zahid.";
// print Concatenate String
echo $bio;
?>
Output: My Name is Jahidul Hasan Zahid