TheIntlChar::isblank() function checks whether the entered value isblank or horizontal space character.
Syntax
IntlChar::isblank (val)
Parameters
val − An integer or character encoded as a UTF-8 string.
Return
The IntlChar::isblank() function returns TRUE if the entered value isblank or horizontal space character.
Example
The following is an example −
<?php var_dump(IntlChar::isblank(" ")); echo "<br>"; var_dump(IntlChar::isblank("* ")); echo "<br>"; var_dump(IntlChar::isblank("8")); echo "<br>"; var_dump(IntlChar::isblank("n")); ?>
Output
The following is the output −
bool(true) NULL bool(false) bool(false)