Home »
MCQs »
PHP MCQs
What is name of PHP '<=>' operator?
83. What is name of PHP "<=>" operator?
- Spaceship
- Safe Spaceship
- Identity
- Identical
Answer: A) Spaceship
Explanation:
The PHP <=> operator is known as the "Spaceship" operator. It returns an integer value that is less than, equal to, or greater than zero, depending on if expression is less than, equal to, or greater than $y. The Spaceship Operator (<=>) was introduced in PHP 7.