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