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
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