ctype_graph to printable characters except space
$input_string : String to be checked. ctype_graph() is a PHP filter function checks if all chars in the $input_string are printable characters except space or not. Any thing other than this if present then it return FALSE.
Output is here
Why the $string4 => 32 is not printable chars in above code ?
The function ctype_graph() expects the input to be a string, hence 32 is considered as ASCII 32 ( which is equal to space ). Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
https://www.plus2net.com
![]() |
▼ Web Forms & handling data in PHP |