PHP Character Type Functions

EditRocket provides the following information on Character Type functions in the PHP source code builder.

bool ctype_alnum ( string $text ) - Checks if all of the characters in the provided string, text, are alphanumeric. In the standard C locale letters are just [A-Za-z].

bool ctype_alpha ( string $text ) - Checks if all of the characters in the provided string, text, are alphabetic. In the standard C locale letters are just [A-Za-z] and ctype_alpha() is equivalent to (ctype_upper($text) || ctype_lower($text)) if $text is just a single character, but other languages have letters that are considered neither upper nor lower case.

bool ctype_cntrl ( string $text ) - Checks if all of the characters in the provided string, text, are control characters. Control characters are e.g. line feed, tab, escape.

bool ctype_digit ( string $text ) - Checks if all of the characters in the provided string, text, are numerical.

bool ctype_graph ( string $text ) - Checks if all of the characters in the provided string, text, creates visible output.

bool ctype_lower ( string $text ) - Checks if all of the characters in the provided string, text, are lowercase letters.

bool ctype_print ( string $text ) - Checks if all of the characters in the provided string, text, are printable.

bool ctype_punct ( string $text ) - Checks if all of the characters in the provided string, text, are punctuation character.

bool ctype_space ( string $text ) - Checks if all of the characters in the provided string, text, creates whitespace.

bool ctype_upper ( string $text ) - Checks if all of the characters in the provided string, text, are uppercase characters.

bool ctype_xdigit ( string $text ) - Checks if all of the characters in the provided string, text, are hexadecimal 'digits'.