[PHP] Re: is_numeric

2005-05-04 Thread Jason Barnett
pete M wrote: not a php expert but have filed this bug report re validating is_numeric('3e0'); http://bugs.php.net/bug.php?id=32943 Yeah I read that report... and as it says you're using Euler's notation. Now tried function isnumeric($n) { if (ereg("^[0-9]{1,50}.?[0-9]{0,50}$", $n)) { if (

[PHP] Re: is_numeric questions

2004-07-28 Thread Torsten Roehr
"Jeff Oien" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 n