Menu
Riverview Church

CTYPE_CNTRL

Check for control character(s)

SYNTAX

ctype_cntrl ( mixed $text ) : bool

PARAMETERS

text

The tested string.

Note: If an integer between -128 and 255 inclusive is provided, it is interpreted as the ASCII value of a single character (negative values have 256 added in order to allow characters in the Extended ASCII range). Any other integer is interpreted as a string containing the decimal digits of the integer.

RETURN

Returns TRUE if every character in text is a control character from the current locale, FALSE otherwise.

EXAMPLES

1

true

2

0:
1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9:     
10:

11:
12:
13:
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
28: 
29: 
30: 
31: 
127: 

PHP