PHP Manual: ctype_cntrl
ctype_cntrl
Description
bool ctype_cntrl ( string text )
Checks if all of the characters in the provided string,
text, are control characters.
Control characters are e.g. line feed, tab, escape.
Return Values
Returns TRUE if every character in text is
a control character from the current locale, FALSE otherwise.
Examples