note 15208 deleted from function.is-numeric by nlopess
| From: | nlopess@php.net | Date: | Fri, 12 Aug 2005 13:30:13 +0000 |
| Subject: | note 15208 deleted from function.is-numeric by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93502@lists.php.net to get a copy of this message | ||
Note Submitter: mark at peak-comm dot com
----
This works for PHP3
function is_numeric($n) {
if (ereg("^[0-9]{1,50}.?[0-9]{0,50}$", $n)) {
return(1);
} else {
return(0);
}
}