Home | Store | osCommerce Tutorials

PHP Concatenation Operator

The PHP concatenation operator (.)  is used to join two or more strings together.

The following PHP example shows how to use PHP concatenation operator to join some strings together. From now on, the HTML header will not be shown.


$str1 = "osCommerce ";
$str2 = "File ";
$str3 = "Structure ";
$str4 = "Tutorial";

echo $str1 . $str2 . $str3 . $str4;


The output of the above PHP concatenation example should look like:

osCommerce File Structure Tutorial