Question: what are spaceship operator in php?
Answer: PHP 7 - Spaceship Operator. In PHP 7, a new feature, spaceship operator has been introduced. It is used to compare two expressions. It returns -1, 0 or 1 when first expression is respectively less than, equal to, or greater than second expression.