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 1925 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!