The concatenation operator(.) is used to put two string values together.
For example:
<?php
$txt1=”Hello World!”;
$txt2=”Have a nice day!”;
echo $txt1.” “.$txt2;
?>
For example:
<?php
$txt1=”Hello World!”;
$txt2=”Have a nice day!”;
echo $txt1.” “.$txt2;
?>
No comments:
Post a Comment