note 50295 deleted from function.is-nan by sobak
| From: | sobak@php.net | Date: | Thu, 01 Dec 2016 17:59:28 +0000 |
| Subject: | note 50295 deleted from function.is-nan by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207913@lists.php.net to get a copy of this message | ||
Note Submitter: Vincent
----
Since NaN is not even equal to itself, here is a way to test it:
<?php
function my_is_nan($_) {
return ($_ !== $_);
}
?>