PHP - String Operators

The Period "." operator used to concatenate two or more strings together.

Ex:

<?php

     $text1 = "Programming Languages";
     $text2 = "for Beginners";
     echo $text1 . " " . $text2; // Two string variables and a space join together
?> 



No comments:

Post a Comment