![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
IntlChar::isspace() function in PHP
The IntlChar::isspace() function check whether the given input character is a space character or not.
Syntax
IntlChar::isspace(val)
Parameters
val − An integer value or character encoded as UTF-8 string.
Return
The IntlChar::isspace()function returnsTRUE if the val is a space character.
Example
The following is an example −
<?php var_dump(IntlChar::isspace("abcd")); echo "<br>"; var_dump(IntlChar::isspace("n")); echo "<br>"; var_dump(IntlChar::isspace("r")); ?>
Output
The following is the output −
NULL bool(true) bool(true)
Example
Let us see another example −
<?php var_dump(IntlChar::isspace("787")); echo "<br>"; var_dump(IntlChar::isspace(" ")); echo "<br>"; var_dump(IntlChar::isspace("*")); ?>
Output
The following is the output −
NULL bool(true) bool(false)
Advertisements