Name

ctype_alpha

Synopsis

int ctype_alpha(string string)

Returns true if every character in string is a letter from the current locale, or false otherwise. In the default locale, the alphabetical characters are uppercase “A” through uppercase “Z” and lowercase “a” through lowercase “z.” Other locales may have additional alphabetical characters.

Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.