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 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
This article is attributed to GeeksforGeeks.org