ctype_alnum
PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
ctype_alnum - Check for alphanumeric character(s)
Code Examples
Example #1 A ctype_alnum example (using the default locale)
Result: The string AbCd1zyZ9 consists of all letters or digits.
The string foo!#$bar does not consist of all letters or digits.