Как печатать строку плюс переменная в php
$variableName = 'Ralph';
echo 'Hello '.$variableName.'!';
Crazy Curlew
$variableName = 'Ralph';
echo 'Hello '.$variableName.'!';
<?php
$a = "Hello ";
$b = $a . "World!"; // now $b contains "Hello World!"
$a = "Hello ";
$a .= "World!"; // now $a contains "Hello World!"
?>