PHP - Superglobals and Web Context
What will the following PHP code output if the URL is
page.php?name=Alice?
<?php echo 'Hello, ' . $_GET['name']; ?>
page.php?name=Alice?
<?php echo 'Hello, ' . $_GET['name']; ?>
name=Alice, so $_GET['name'] will be 'Alice'.$_GET['name'], so it prints 'Hello, Alice'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions