ctype_cntrl(): to check control characters
Output is here
echo " All are control characters ";
echo "All or some are not control characters ";
All are control characters
$input_string : String to be checked.
bool ctype_cntrl ( string $input_string )
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..
ctype()ctype_alpha(): alphabetic characters only ctype_alnum(): alphanumeric characters only
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.