ctype_space

PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
ctype_space - Check for whitespace character(s)
Manual
Code Examples

Example #1 A ctype_space example

Result: The string 'string1' consists of whitespace characters only. The string 'string2' contains non-whitespace characters. The string 'string3' contains non-whitespace characters.
PHP Version:


Function ctype_space:

Character type checking Functions

Most used PHP functions