Voting

: two minus one?
(Example: nine)

The Note You're Voting On

ben at chico dot com
11 years ago
Apparently NAN (Not A Number) is a number for the sake of is_numeric().

<?php
echo "is ";
if (!
is_numeric(NAN))
echo
"not ";
echo
"a number";
?>

Outputs "is a number". So something that is NOT a number (by defintion) is a number...

<< Back to user notes page

To Top