The ctype extension checks whether a character or string falls into a certain character class according to the current locale.
For more information on ctype, check us2.php.net/manual/en/ref.ctype.php.