(PHP 4 >= 4.0.4, PHP 5, PHP 7)
Check for character(s) representing a hexadecimal digit
bool ctype_xdigit ( string $text )
Checks if all of the characters in the provided string, text, are hexadecimal 'digits'.
Parameters:
text
The tested string.
Returns:
Returns TRUE if every character in text is a hexadecimal 'digit', that is a decimal digi