About 408 results
Open links in new tab
  1. Three-way comparison - Wikipedia

    The three-way comparison operator or "spaceship operator" for numbers is denoted as <=> in Perl, Ruby, Apache Groovy, PHP, …

  2. Comparison operators - cppreference.com

    The values yielded by equality operators for built-in pointer equality comparison is listed below: ... If at least one of converted lhs and …

  3. What is <=> (the 'Spaceship' Operator) in PHP 7? - Stack Overflow

    May 21, 2015 · The rules used by the combined comparison operator are the same as the currently used comparison operators by …

  4. PHP 7 | Spaceship Operator - GeeksforGeeks

    Jul 11, 2025 · This article will make you aware of a very useful operator i.e the spaceship operator PHP 7. The spaceship operator or …

  5. PHP: rfc:combined-comparison-operator

    Feb 12, 2014 · Add a new operator (expr) <=> (expr), it returns 0 if both operands are equal, 1 if the left is greater, and -1 if the right …

  6. Chaining comparison operators in Python - GeeksforGeeks

    Jul 23, 2025 · In Python, comparison operator chaining allows us to write cleaner, more readable code when evaluating multiple …

  7. Combined Comparison / "Spaceship" Operator (<=>) in Javascript?

    Credit Is there a similar Operator in Javascript? If not, how can I end up with the same result? @madox2 suggested using …

  8. Spaceship Operator in JavaScript: Does JS Have Ruby's Combined ...

    Jan 16, 2026 · In the world of programming, comparison operators are fundamental for making decisions, sorting data, and …

  9. PHP: Comparison - Manual

    Comparison Operators ¶ Comparison operators, as their name implies, allow you to compare two values. You may also be interested …

  10. PHP 7 - Spaceship Operator | Programster's Blog

    Aug 16, 2018 · The spaceship operator ( <=> ) is new in PHP 7.0. You may hear it being referred to as the "Combined Comparison …