Question from the PHP - Fundamentals test

Usage of the spaceship operator in a PHP loop.

Hard

What is the output of the following code ?

for ($x = 0; $x < 4; $x++) {
	echo $x <=> 1;
	echo ' ';
}
Author: ThéoStatus: PublishedQuestion passed 1481 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!