ctype_cntrl to check control characters

bool ctype_cntrl ( string $input_string )
$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..

echo " All are control characters ";
echo "All or some are not control characters ";
Output is here
All are control characters


Post your comments , suggestion , error , requirements etc here .

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer