Concatenating Two Strings in PHP

Q

How To Concatenate Two Strings Together?

✍: FYIcenter.com

A

You can use the string concatenation operator (.) to join two strings into one. Here is a PHP script example of string concatenation:

<?php 
echo 'Hello ' . "world!\n";
?>

This script will print:

Hello world!

 

Understanding PHP String Literals and Operations

⇒⇒PHP Tutorials

2016-10-13, 232👍, 0💬