PHP | ctype_graph() Function Last Updated : 29 Mar, 2023 Comments Improve Suggest changes Like Article Like Report A ctype_graph() Function is inbuilt function in PHP. The given string is used to check each character and display all visible character without white-space character. If it's visible then return True otherwise False. Syntax: bool ctype_graph ( $text ) Parameters: The ctype_graph() function accepts a single parameter $text file which contains tested strings. Return Value: It return true if every character in $text is printable, otherwise return false. Examples: Input : Geeks Input : http//geeks.com\n Output : No Explanation : "\n" is not visible in string "http//geeks.com\n". Below is the implementation of ctype_graph() function. Program 1: PHP <?php // PHP program to check given string // produce visible output or not $string = "Geeksforgeeks"; // Check strings by using ctype_graph() // function. if ( ctype_graph ($string) ) echo "$string: Visible"; else echo "$string: Not Visible"; ?> Output:Geeksforgeeks: Visible Program 2: PHP <?php // PHP program to check given string // produce visible output or not $string = array( "@!#$%^&*()_+", "peaceful mind", '45600' ); // Check strings by using ctype_graph() // function. foreach ($string as $test) { if (ctype_graph($test)) echo "$test: Visible\n"; else echo "$test: Not Visible\n"; } ?> Output:@!#$%^&*()_+: Visible peaceful mind: Not Visible 45600: Visible Related Article: PHP | ctype_print() Function References :http://php.net/manual/en/function.ctype-graph.php Comment More infoAdvertise with us Next Article PHP | ctype_graph() Function jit_t Follow Improve Article Tags : Web Technologies PHP PHP-function Similar Reads PHP | ctype_print() Function The ctype_print() Function in PHP used to check each and every character of a string are visible or not. If all characters of string are visible then returns TRUE , else if there are any control character then return FALSE. Control Character: A character that does not represent a printable character 2 min read PHP | ctype_cntrl() Function The ctype_cntrl() function is an inbuilt function in PHP and is used to check if all the characters of a given string are control characters or not. It returns True if all characters of the string are control characters otherwise it returns false.Control Character: A character that does not represen 2 min read PHP | ctype_cntrl() Function The ctype_cntrl() is an inbuilt function in PHP which is used to check all the characters in string/text are control characters. Control characters are e.g. line feed, tab, escape.Syntax: bool ctype_cntrl ( $str ) Parameters: This function accepts a single parameter $str. It is a mandatory parameter 2 min read PHP | IntlChar charType() Function The IntlChar::charType() function is an inbuilt function in PHP which is used to get the general category value for a code point. This function returns the general category value for the code point. Syntax: int IntlChar::charType ( $codepoint ) Parameters: This function accepts a single parameter $c 2 min read PHP | ImagickDraw circle() Function The ImagickDraw::circle() function is an inbuilt function in Imagick library of PHP which is used to draw a circle. Syntax: bool ImagickDraw::circle( $ox, $oy, $px, $py ) Parameters: This function accepts four parameters as mentioned above and described below: $ox: This parameter takes the value of 1 min read 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 enumCharTypes() Function The IntlChar::enumCharTypes() function is an inbuilt function in PHP which is used to give a catalog of all the code points with their Unicode general categories. All the cataloging happens very efficiently of all the code points. For enumerating all the assigned code points and building data struct 2 min read PHP gettype() Function The PHP gettype() function returns the type of a variable as a string. It identifies the variable's data type, such as string, integer, array, boolean, etc., allowing developers to check and handle different data types dynamically.Syntax:string gettype ( $var )Parameter: This function accepts a sing 2 min read PHP | imagecharup() Function The imagecharup() function is an inbuilt function in PHP which is used to draw a character vertically. This function draws the first character of a string in the image identified by the image with its x and y-axis. The coordinate of the top-left corner is (0, 0). Syntax: bool imagecharup( $image, $f 2 min read PHP | Gmagick __construct() Function The Gmagick::__construct() function is an inbuilt function in PHP which is used to create a Gmagick object. Further Gmagick manipulations can be done with this newly created Gmagick object. Syntax: public Gmagick::__construct( string $filename ) Parameters: This function accepts a single parameter $ 1 min read Like