PHP - Output and String Handling
Why does the following PHP code print the string literal instead of the variable value?
<?php
$name = "John";
echo 'Hello, $name!';
?>
<?php
$name = "John";
echo 'Hello, $name!';
?>
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions