note 75966 deleted from function.is-numeric by colder
| From: | colder@php.net | Date: | Mon, 25 Jun 2007 01:42:31 +0000 |
| Subject: | note 75966 deleted from function.is-numeric by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127933@lists.php.net to get a copy of this message | ||
Note Submitter: Gianluigi Zanettini, MegaLab.it
----
jernejcoder, I can confirm your report: i've got the same problem with
is_numeric("1"). And they call it "loosely typed"...
My solution is..
<?php
ereg("^[0-9]*$", $var_to_check)
?>