ctype_xdigit

Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Check for character(s) representing a hexadecimal digit
<?php ctype_xdigit(mixed $text): bool