note 122002 deleted from language.operators.comparison by cmb
| From: | cmb@php.net | Date: | Sun, 10 Dec 2017 18:37:46 +0000 |
| Subject: | note 122002 deleted from language.operators.comparison by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209345@lists.php.net to get a copy of this message | ||
Note Submitter: Chen-Pang He
----
The <> operator is flawed. The expression a <> b means a != b instead of (a < b || a
> b).
<?php
NAN > 3 // false
NAN < 3 // false
NAN <> 3 // true