Wednesday, November 21, 2012

Concatenation Operator

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;
?>

No comments:

Post a Comment