Spaceship Operator
https://stackoverflow.com/questions/30365346/what-is-the-spaceship-operator-in-php-7#30365399
The <=>
("Spaceship") operator will offer combined comparison in that it will :
The rules used by the combined comparison operator are the same as the currently used comparison operators by PHP viz. <
, <=
, ==
, >=
and >
. Those who are from Perl or Ruby programming background may already be familiar with this new operator proposed for PHP7.