PHP Cheatsheet

Concatenate two strings

Example for concatenating two strings on PHP:

$x = "First";
$y = "Second";
$z = $x . " " . $y;
echo $z;

The result is:

First Second