
- PHP 7 Tutorial
- PHP 7 - Home
- PHP 7 - Introduction
- PHP 7 - Performance
- PHP 7 - Environment Setup
- PHP 7 - Scalar Type Declarations
- PHP 7 - Return Type Declarations
- PHP 7 - Null Coalescing Operator
- PHP 7 - Spaceship Operator
- PHP 7 - Constant Arrays
- PHP 7 - Anonymous Classes
- PHP 7 - Closure::call()
- PHP 7 - Filtered unserialize()
- PHP 7 - IntlChar
- PHP 7 - CSPRNG
- PHP 7 - Expectations
- PHP 7 - use Statement
- PHP 7 - Error Handling
- PHP 7 - Integer Division
- PHP 7 - Session Options
- PHP 7 - Deprecated Features
- PHP 7 - Removed Extensions & SAPIs
- PHP 7 Useful Resources
- PHP 7 - Quick Guide
- PHP 7 - Useful Resources
- PHP 7 - Discussion
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)
- Related Articles
- IntlChar::isalpha() function in PHP
- IntlChar::isbase() function in PHP
- IntlChar::isalnum() function in PHP
- IntlChar::isprint() function in PHP
- IntlChar::iscntrl() function in PHP
- IntlChar::isxdigit() function in PHP
- IntlChar::isspace() function in PHP
- IntlChar::ispunct() function in PHP
- IntlChar::isUUppercase() function in PHP
- IntlChar::charName() function in PHP
- IntlChar::charAge() function in PHP
- IntlChar::isUWhiteSpace() function in PHP
- IntlChar::isIDIgnorable() function in PHP
- IntlChar::isISOControl() function in PHP
- IntlChar::isULowercase() function in PHP

Advertisements