ctype_cntrl to check control characters
$input_string : String to be checked. ctype_cntrl() is a PHP filter function checks if all chars in the $input_string are control characters or not. Any thing other than this if present then it return FALSE.
Control characters are non-printing chars that does not represents a written symbol. Example : \n ( line feed ) , \e escape, \v vertical tab etc..
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 |