Validating an alphabetic string
Validating alphabetic strings: ctype_alpha()
When you need to validate strings, you can use one of the ctype_...() functions.
The ctype_alpha() function returns true if the input string contains all alphabetic characters.
ctype_alpha("myteststring"); // truectype_alpha("my test string"); // false