ctype_xdigit

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
ctype_xdigit - Check for character(s) representing a hexadecimal digit
Manual
Code Examples

Example #1 A ctype_xdigit example

Result: The string AB10BC99 consists of all hexadecimal digits. The string AR1012 does not consist of all hexadecimal digits. The string ab12bc99 consists of all hexadecimal digits.
PHP Version:


Function ctype_xdigit:

Character type checking Functions

Most used PHP functions