← All docs

ctype_space()

Checks if all characters in the string are whitespace characters.

ctype_space()

function ctype_space(string $text): bool

Checks if all characters in the string are whitespace characters.

Parameters:

  • $text (string)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how ctype_space is implemented in the compiler, see the internals page.