- 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 isgraph() function in PHP
The IntlChar isgraph()function checks that the entered value is a graphic character or not.
Syntax
bool IntlChar::isgraph (val)
Parameters
val − An integer or character encoded as a UTF-8 string.
Return
The IntlChar isgraph() function returns TRUE of val is a graphic character.
Example
The following is an example −
<?php var_dump(IntlChar::isgraph("9")); echo "<br>"; var_dump(IntlChar::isgraph("r")); echo "<br>"; var_dump(IntlChar::isgraph("n")); echo "<br>"; var_dump(IntlChar::isgraph("j")); echo "<br>"; ?>
Output
The following is the output −
bool(true) bool(false) bool(false) bool(true)
Advertisements