How to concatenate the two strings in PHP
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