[PHP] Re: regular expresion

2001-10-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Richard) wrote: > Hi, I want to validate that a variable only contains numbers. I came up with > this code > > $variable = "154545"; -> must give me true. > $variable = "$%54545"; -> must give me false > $variable = "$%54545"; -> must

RE: [PHP] Re: regular expresion

2001-10-19 Thread Mark Charette
> In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe