ctype_alnum
Opis
bool ctype_alnum ( string text )
Checks if all of the characters in the provided string,
text
, are alphanumeric. In the standard
C locale letters are just [A-Za-z]
and the function is equivalent to
preg_match('/^[a-z0-9]+$/iD', $text).
Zwracane wartości
Returns TRUE if every character in text
is either
a letter or a digit, FALSE otherwise.
Przykłady
Poprzedni | Spis treści | Następny |
Character Type Functions | Początek rozdziału |