[dev] ctype functions

Marko Djukic marko at oblo.com
Sun Mar 9 06:12:55 PST 2003


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) ?

marko


More information about the dev mailing list