note 15964 rejected from function.is-float by zak
| From: | zak@php.net | Date: | Wed, 10 Oct 2001 15:50:48 +0000 |
| Subject: | note 15964 rejected from function.is-float by zak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-18781@lists.php.net to get a copy of this message | ||
This function seems to note the current state of the variable - it doesn't auto-type the input!
For example:
$input='5';
if (is_float($input))
echo 'real';
else echo 'not real';
will return 'not real'. But 5 is a valid "real" number that I can dump into a
database!