PHP | IntlChar isgraph() Function Last Updated : 11 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report 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). Syntax: bool IntlChar::isgraph ( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The $codepoint value is an integer values or character, which is encoded as a UTF-8 string. Return Value: This function returns True if $codepoint is a graphic character, False otherwise. Below programs illustrate the IntlChar::isgraph() function in PHP: Program 1: php <?php // PHP code to illustrate the // IntlChar::isgraph() function. // Alphabet cases var_dump(IntlChar::isgraph("c")); // Single digit var_dump(IntlChar::isgraph("4")); // UTF encoded string var_dump(IntlChar::isgraph("\u{2403}")); // new line character var_dump(IntlChar::isgraph("\n")); // vertical tab character var_dump(IntlChar::isgraph("\t")); ?> Output: bool(true) bool(true) bool(true) bool(false) bool(false) Program 2: php <?php // PHP code to illustrate IntlChar isgraph() // Declare an array $arr $arr = array("Z", "291", "^", " ", "*", "Sudo Placement"); // Loop run for every array element foreach ($arr as $val){ // Check each element as code point data var_dump(IntlChar::isgraph($val)); } ?> Output: bool(true) NULL bool(true) NULL bool(true) NULL Related Articles: PHP | IntlChar::iscntrl() Function PHP | IntlChar::isdigit() Function Reference: https://www.php.net/manual/en/intlchar.isgraph.php Comment More infoAdvertise with us Next Article PHP | IntlChar::isblank() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP PHP-function PHP-Intl +1 More Practice Tags : Misc Similar Reads PHP | IntlChar::isalpha() Function 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 parame 1 min read PHP | IntlChar::isalpha() Function 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 parame 1 min read PHP IntlChar::isbase() Function PHP IntlChar::isbase() function is an inbuilt function in PHP that is used to check whether the given input data is a base character or not. If the specified code point is a base character then it returns TRUE for general categories "L" (Letters), "N" (numbers), "Mc" (spacing combining marks), and " 2 min read PHP IntlChar::isbase() Function PHP IntlChar::isbase() function is an inbuilt function in PHP that is used to check whether the given input data is a base character or not. If the specified code point is a base character then it returns TRUE for general categories "L" (Letters), "N" (numbers), "Mc" (spacing combining marks), and " 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::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 Like