String Operators in PHP :
The string operator is mostly used in the coding of not only PHP but in so many languages.the period "." sign allocates the concatination of two strings. I am going to show you an example which contains two variable and both are having character type values and the string operator concatenates both of the variables in the different variable.
The example is as follows :
Code:
$string_one = "Hello";
$string_two = "Neo";
$cont_string = $string_one . $string_two;
echo $cont_string . "!";
The echo statement will produce the result as "Hello Neo".
Bookmarks