The IntlChar::isUWhiteSpace() function check whether the given input character is a WhiteSpace Unicode character or not.
Syntax
IntlChar::isUWhiteSpace(val)
Parameters
val − A character or integer value encoded as a UTF-8 string.
Return
The IntlChar::isUWhiteSpace() function returns TRUE if the val is a WhiteSpace Unicode character.
Example
The following is an example −
<?php var_dump(IntlChar::isUWhiteSpace("\n")); echo "<br>"; var_dump(IntlChar::isUWhiteSpace("A")); echo "<br>"; var_dump(IntlChar::isUWhiteSpace("*")); ?>
Output
The following is the output −
bool(true) bool(false) bool(false)