A period (.) character is used to combine two separate variables into a single string : String Concatenation « String « PHP
- PHP
- String
- String Concatenation
A period (.) character is used to combine two separate variables into a single string
<?php
$string = "Thank you for buying ";
$newstring = $string . "my book!";
?>
Related examples in the same category