---
title: "Discussion on \"The Complete Guide to PHP Spaceship Operator\" | Hashnode"
description: "Discussion on \"The Complete Guide to PHP Spaceship Operator\". PHP spaceship operator is used to compare two operands together according to 3 factors which are like the below list:\n\nLess than\n\nGreater than\n\nEqual to\n\n\nThe expression of the PHP spaceship operator is written like this below syntax.\noperand_1 <=> o..."
url: "https://hashnode.com/posts/the-complete-guide-to-php-spaceship-operator/638768a5982d7d5cb2ff543f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Complete Guide to PHP Spaceship Operator](https://codeweb.hashnode.dev/the-complete-guide-to-php-spaceship-operator?utm_source=hashnode&utm_medium=feed)

PHP spaceship operator is used to compare two operands together according to 3 factors which are like the below list: Less than Greater than Equal to The expression of the PHP spaceship operator is written like this below syntax. operand\_1 <=> o...

Nov 30, 2022 · 1 min read · codeweb.hashnode.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#php7](https://hashnode.com/tag/php7)

## Written by

[Greg Bulmash](https://hashnode.com/@Bulmash)

@Bulmash

  
[View profile](https://hashnode.com/@Bulmash)

programming

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
