Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
IntlChar::isWhitespace() function in PHP
The IntlChar::isWhitespace() function checks whether the given input character is a WhiteSpace character or not.
Syntax
IntlChar::isWhitespace(val)
Parameters
val − A character or integer value encoded as a UTF-8 string.
Return
The IntlChar::isWhitespace()function returns TRUE if val is a WhiteSpace character.
Example
The following is an example −
";
var_dump(IntlChar::iswhitespace(" "));
echo "
";
var_dump(IntlChar::iswhitespace("& "));
echo "
";
?>
Output
The following is the output −
bool(false) bool(true) NULL
Advertisements
