Character Type functions
bool ctype_alnum(string txt)
checks whether all the character in the string supplied are alpah numeric characters which is similar to regular match preg_match(’/^[a-z0-9]+$/iD’, txt)
bool ctype_alpha ( string text )
checks whether all the character in the string supplied are alphabet
characters which is similar to regular match preg_match(’/^[a-zA-Z]/’, txt)
bool ctype_cntrl ( string text )
checks whether all the character in the string supplied are control
characters. Control characters are e.g. line feed, tab, escape.
ie are ‘\n\r\t’
bool ctype_digit ( string text )
checks whether all the character in the string supplied are numerical
characters which is similar to regular match preg_match(’/^[0-9]/’, txt)
