Question 1 of 100
What does this code output?
echo 76 <=> '76 trombones';
1
-1
a parser error
0
Both sides of the "spaceship" are equal, so the answer is 0. PHP will convert '76 trombones' to 76 in this context, as the string starts with '76'. Try it! For php 8.0 and forward the answer is [x] -1, for previous versions the answer is [x] 0. PHP 8 changed the way non-strict comparison between numbers and non-numeric strings work.
Time Remaining:01:30
Questions: 1/100