Name

ctype_xdigit

Synopsis

int ctype_xdigit(string string)

Returns true if every character in string is a valid hexadecimal digit. This includes the numeric digits 0-9 and the upper- and lowercase alphabetical characters a-z and A-Z.

Get Programming PHP, 2nd Edition 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.