To concatenate the two strings we need to use period
. concatenation operator in PHP.
Here is an example:
$first = "hello "; $second = "king"; $result = $first . $second ; echo $result
Similary, you can also use
$name = "john "; $name .= "james"; echo $name