PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
ctype_alpha - Check for alphabetic character(s)
Code Examples

Example #1 A ctype_alpha example (using the default locale)

Result: The string KjgWZC consists of all letters. The string arf12 does not consist of all letters.
PHP Version:

Function ctype_alpha:

Character type checking Functions

Most used PHP functions