Brent Baisley <[EMAIL PROTECTED]> wrote: > I'm pretty sure there will be a problem with using the is_int() > function. A similar problem was discussed a few weeks ago on this list > and is_int() will return true for a "number" like 1000e2. The "e" being > treated as an exponential representation of an integer.
I thought that was is_numeric(), I'll have to test that. > It might be more reliable to add or subtract 0 from the "string" and > see if it changes. Something like: > if( (strlen($str)==6) && ( strcmp(($str-0),$str)==0)) True that should work but it is kinda confusing code for a newbie. It doesnt really explain well what your doing. > -- > Brent Baisley > Systems Architect > Landover Associates, Inc. > Search & Advisory Services for Advanced Technology Environments > p: 212.759.6400/800.759.0577 > > Curt -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php