PHP | IntlChar::isalpha() Function Last Updated : 21 Jun, 2021 Comments Improve Suggest changes Like Article Like Report The IntlChar::isalpha() function is an inbuilt function in PHP which is used to check the given input is an alphanumeric character or not. Syntax: bool IntlChar::isalpha( $codepoint ) Parameters: The IntlChar::isalpha() function accept single parameter $codepoint which is mandatory. The input parameter is an integer value or character, which is encoded as a UTF-8 string.Return Value: If $codepoint is an alphanumeric character then it returns True, otherwise return False. Below programs illustrate the IntlChar::isalpha() function in PHP: Program 1: PHP <?php // PHP code to illustrate IntlChar::isalpha() // function // Input data is character type var_dump(IntlChar::isalpha("G")); // Input data is string type var_dump(IntlChar::isalpha("G\n")); // Input data is string type var_dump(IntlChar::isalpha("Geeksforgeeks")); // Input data is number var_dump(IntlChar::isalpha("2018")); // Input data is single digit var_dump(IntlChar::isalpha("5")); ?> Output: bool(true) NULL NULL NULL bool(false) Program 2: PHP <?php // PHP code to illustrate IntlChar::isalpha() // Declare an array $arr $arr = array("G", "GeeksforGeeks", "^", "1001", "6", "\u{2018}"); // Loop run for every array element foreach ($arr as $val){ // Check each element as code point data var_dump(IntlChar::isalpha($val)); } ?> Output: bool(true) NULL bool(false) NULL bool(false) bool(false) Related Articles: PHP | IntlChar::isdigit() FunctionPHP | IntlChar::isblank() FunctionPHP | IntlChar::isbase() Function Reference: http://php.net/manual/en/intlchar.isalpha.php Comment More infoAdvertise with us Next Article PHP | IntlChar::isalpha() Function J jit_t Follow Improve Article Tags : Web Technologies PHP PHP-function Similar Reads PHP | IntlChar isgraph() Function The IntlChar::isgraph() function is an inbuilt function in PHP which is used to check the code point is a graphic character or not. It returns True for all characters except those with general categories Cc(control codes), Cf(format controls), Cs(surrogates), Cn(unassigned), and Z(separators). Synta 2 min read PHP | IntlChar::isUAlphabetic() Function The IntlChar::isUAlphabetic() function is an inbuilt function in PHP which is used to check whether the given input character is an Alphabetic Unicode character or not. Syntax: bool IntlChar::isUAlphabetic( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandato 2 min read PHP | IntlChar::isalnum () Function The IntlChar::isalnum() function is an inbuilt function in PHP which is used to check the given input is an alphanumeric character (Digit or Letter) or not. It returns TRUE for characters with general categories "L" (letters) and "Nd" (decimal digit numbers). Syntax: bool IntlChar::isalnum( $codepoi 2 min read PHP | IntlChar::isblank() Function The IntlChar::isblank() function is an inbuilt function in PHP which is used to determine the given input code data is blank or horizontal space character and the character visible separates words on a line. If the input contains U+0009 (TAB) and characters "Zs" (space separators) except Zero Width 2 min read PHP | IntlChar::isspace() Function The IntlChar::isspace() function is an inbuilt function in PHP which is used to check whether the given input character is a space character or not. Syntax: bool IntlChar::isspace( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The input parameter is 2 min read Like