PHP - Superglobals and Web Context
Consider this PHP snippet:
What will be the output if the form is submitted without the 'age' field?
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$age = $_POST['age'] ?? 'unknown';
echo "Age: $age";
} else {
echo 'No data submitted';
}
?>What will be the output if the form is submitted without the 'age' field?
