ctype_alnum

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
ctype_alnum - Check for alphanumeric character(s)
Manual
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.
PHP Version:


Function ctype_alnum:

Character type checking Functions

Most used PHP functions