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!


Comparing Two Strings in PHP

Assigning a New Character in a String in PHP

Understanding PHP String Literals and Operations

⇑⇑ PHP Tutorials

2016-10-13, 1574🔥, 0💬