RE: [PHP] Re: regular expresion
| From: | Mark Charette | Date: | Sat, 20 Oct 2001 03:49:21 +0000 |
| Subject: | RE: [PHP] Re: regular expresion | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71653@lists.php.net to get a copy of this message | ||
> In article <20011020000605.2047.qmail@pb1.pair.com>,
> ragb@mail.com (Richard) wrote:
>
> > Hi, I want to validate that a variable only contains numbers. I
> came up with
> > this code
>
I came up with this code:
is_numeric($var)
mark C.