Quiz: Understanding PHP 8 Functional Differences
Test your understanding of PHP 8's new functional differences.
1
What would be the output of this code in PHP 8?
<?php
$age = '34 ';
echo (is_numeric($age))
? "Age must be a number\n"
: "Age is $age\n";
?>
A)
"Age must be a number"
B)
"Age is 34"
C)
Warning
D)
Fatal Error
Question 1 of 50 attempted
Get hands-on with 1200+ tech skills courses.