how to echo a variable in php html 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.'!';