Pages

Concatenation PHP

There is only one string operator in PHP.
The concatenation operator (.)  is used to join two string values together.
The example below shows how to concatenate two string variables together:

Example

<?php
$txt1="Hello world!";
$txt2="What a nice day!";
echo $txt1 . " " . $txt2;
?>

No comments:

Flag Counter
| Copyright © 2013 Remote Tutor