...

/

Quiz: Understanding PHP 8 Functional Differences

Quiz: Understanding PHP 8 Functional Differences

Test your understanding of PHP 8's new functional differences.

We'll cover the following...
Technical Quiz
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


1 / 5
...