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).
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:
bool(true) bool(true) bool(true) bool(false) bool(false)
bool(true) NULL bool(true) NULL bool(true) NULL
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.