Re: is_numeric questions
| From: | Torsten Roehr | Date: | Wed, 28 Jul 2004 19:31:08 +0000 |
| Subject: | Re: is_numeric questions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192120@lists.php.net to get a copy of this message | ||
"Jeff Oien" <jeff@webdesigns1.com> wrote in message
news:4107FAFC.50103@webdesigns1.com...
> Does is_numeric include commas decimals and dollar signs?
>
> How do I use this to error check form data? I'm having a hard time
> figuring out what the correct syntax is for that application. Thanks.
> Jeff
It surely will not allow a dollar sign. Otherwise just test it with various
values!
You might take a look at PEAR::Validate for checking *true* numeric values:
http://pear.php.net/package/Validate
Regards, Torsten Roehr