So You Want to Compare Stuff? PHP Comparison Operators, or relational operators, test some type of relation between two values. We’ve seen a few comparison operators in math, such as greater-than and less-than; in PHP, we have a few more comparison operators at our disposal. The relational operators that we’re going to be looking at are: Greater-than: > Greater-than-or-equal-to: ≥ Less-than: < Less-than-or-equal-to: ≤ Equal-to: == Identical-to: === Not-equal-to: != or <> Not-identical-to: !== Spaceship operator: <=> The comparison operator, whichever one you choose, will evaluate to either true or false. If we say, 3 > 2, what we’re