php echo +variable code example
Example 1: php echo variable
<?php
$name = "John Doe";
echo "Hey $name!";
?>
Example 2: php variable in echo
echo 'Hello '.$variableName.'!';
<?php
$name = "John Doe";
echo "Hey $name!";
?>
echo 'Hello '.$variableName.'!';