In PHP 7, a new feature “Spaceship Operator” has been included. It is used to compare two expression together.
The spaceship operator is a combination of comparison operators and denoted by “<=>”. Spaceship operator performs greater than, less than and equal comparison between two operands.
Spaceship operator can be used with integers, floats, strings, array or objects etc.