• Increase font size
  • Default font size
  • Decrease font size
English (United Kingdom)Български (България)
Home Category Table The Concatenation Operator

The Concatenation Operator

E-mail Print PDF
There are no translations available.

There is only one string operator in PHP.
The concatenation operator (.)  is used to put two string values together.

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


Result:

Hello World! What a nice day!

 

 

Add comment


Security code
Refresh

Main Menu


download-joomla


download-joomla