ctype_alnumCheck for alphanumeric character(s) Description
bool ctype_alnum
( string
$text
)
Checks if all of the characters in the provided string,
Parameters
Return Values
Returns Examples
Example #1 A ctype_alnum example (using the default locale)
<?php The above example will output: The string AbCd1zyZ9 consists of all letters or digits. The string foo!#$bar does not consist of all letters or digits. Notes
See Also
|