Cómo imprimir cadena más variable en 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!"
?>