The isalpha function in C programming checks whether the argument passed is analphabetic character(a to z and A-Z) or not. It is declared inctype.hand takes one argument. The isalpha function tests for any char
The prototype of isalpha() as defined in the cctype header file is: int isalpha(int ch); Here, ch is checked for alphabets as classified by the currently installed C locale. By default, the following characters are alphabets: Uppercase Letters: 'A' to 'Z' Lowercase Letters: 'a' to '...
Let us see another example wherein we are checking for alphanumeric characters − <?php var_dump(IntlChar::isalpha("Amit")); echo ""; var_dump(IntlChar::isalpha("Jacob87876")); echo ""; var_dump(IntlChar::isalpha("87876")); echo ""; var_dump(IntlChar::isalpha("A")); ?> Outpu...