";
$fname = "Brian";
echo "My name is " . $fname . " Shields"; // join two text strings and variable (text string)
echo "
";
$sname = "Shields";
echo "My name is " . $fname . " " . $sname; // join a text string and two variables (text strings ) - also need to add a space charcter
echo "
";
$fullname = $fname . " " . $sname; // create a variable (text string) from two other text strings
echo "My name is " . $fullname;
echo "
";
$fulltext = "My name is " . $fname . " " . $sname; // create a variable (text string) which contains all text - including variables
echo $fulltext;
?>