Concatenating Two Strings in PHP


How To Concatenate Two Strings Together?



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

echo 'Hello ' . "world!\n";

This script will print:

Hello world!


⇒Understanding PHP String Literals and Operations

⇒⇒PHP Tutorials

2016-10-13, 1218👍, 0💬