How To Concatenate Two Strings Together

Q

How To Concatenate Two Strings Together? - PHP Script Tips - Understanding String Literals and Operations

✍: 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!

2007-04-20, 4802👍, 0💬