Menu
Samaritan's Purse

CTYPE_SPACE

Check for whitespace character(s)

SYNTAX

ctype_space ( 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 creates some sort of white space, FALSE otherwise. Besides the blank character this also includes tab, vertical tab, line feed, carriage return and form feed characters.

EXAMPLES

1

true

2

9:     
10:

11:
12:
13:
32:

PHP