I am looking for a function that would be the alphabetic equivalent of is_numeric. It would return true if there are only letters in the string and false otherwise. Does a bui
I would have used preg_match. But that's because I'd never heard of ctype_alpha().
ctype_alpha()
if(!preg_match("/[^a-zA-Z]/", $teststring)) { echo "There are only letters in this string"; } else { echo "There are non-letters in this string"; }