Signatur
ctype_space(mixed $text): bool
Beschreibung
Für „ist der Input effektiv leer?"-Prüfungen. Alternative: trim($s) === ''.
Parameter
| Name | Typ | Default | Beschreibung |
|---|---|---|---|
| $text Pflicht | string | — | Eingabe. |
Rückgabewert
Typ
bool
Beschreibung
true wenn nur Whitespace.
Beispiele
Whitespace-Check
<?php
var_dump(ctype_space(" \t\n")); // true