Question from the PHP7 test

What will this code display?

Hard

What will this code display?

<?php
$x= 0;
if(empty($x)){
    echo 'A';
}
if(is_null($x)){
    echo 'B';
}
if(isset($x)){
    echo 'C';
}
if($x){
    echo 'D';
}


Author: Julien BreuxStatus: PublishedQuestion passed 1133 times
Edit
3
Community Evaluations
developer avatar
William Mead
18/02/2024
bonne question en ce qui concerne les diffĂ©rentes maniĂšres dont 0 peut ĂȘtre Ă©valuĂ©