[dev] ctype functions
Chuck Hagenbuch
chuck at horde.org
Mon Mar 10 10:30:28 PST 2003
Quoting Marko Djukic <marko at oblo.com>:
> according to the "editor's note" on
> http://www.php.net/manual/en/ref.ctype.php
> ctypes should be prefered to regex, and some is_* functions.
>
> so, anyone know if therefore ctype_digit() should be used instead of
> is_int()?
>
> hwo about instead of preg_match('/^[0-9]+$/', $somevar) ?
Looks okay to me.
-chuck
--
Charles Hagenbuch, <chuck at horde.org>
I know there's fish out there, but where g-d only knows.
More information about the dev
mailing list