F.7. Character Type

FunctionReturnsDescription
ctype_alnum(string text)
boolChecks for alphanumeric character(s).
ctype_alpha(string text)
boolChecks for alphabetic character(s).
ctype_cntrl(string text)
boolChecks for control character(s).
ctype_digit(string text)
boolChecks for numeric character(s).
ctype_graph(string text)
boolChecks for any printable character(s) except space.
ctype_lower(string text)
boolChecks for lowercase character(s).
ctype_print(string text)
boolChecks for printable character(s).
ctype_punct(string text)
boolChecks for any printable character that is not whitespace or an alphanumeric character.
ctype_space(string text)
boolChecks for whitespace character(s).
ctype_upper(string text)
boolChecks for uppercase character(s).
ctype_xdigit(string text)
boolChecks for character(s) representing a hexadecimal digit.

Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.