Quiz Question 1 of 5
Imagine you've navigated to this URL: http://localhost:8080/index.php?lang=english
. Using the code example from index.php
, what does the code below return?
<?php
if(isset($_GET['name'])){
$name = $_GET['name'];
}
function greeting(){
if(isset($_GET['name'])){
$name = $_GET['name'];
echo "Hello, " . $name;
}
}
greeting();
?>
Choose the correct answer below: