PHP 7 introduces the spaceship (<=>) operator
So what exactly is the spaceship (<=>) operator?
Return 0 if values on either side are equal
Return 1 if value on the left is greater
Return -1 if the value on the right is greater
So what exactly is the spaceship (<=>) operator?
Return 0 if values on either side are equal
Return 1 if value on the left is greater
Return -1 if the value on the right is greater
Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001