- Trending Categories
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::isprint() function in PHP
The IntlChar::isprint() function checks whether the given input character is a printable character or not.
Syntax
IntlChar::isprint( val )
Parameters
val − An integer values or character encoded as a UTF-8 string. Required!
Return
The IntlChar::isprint() function returns TRUE if the val is a printable character
Example
The following is an example −
<?php var_dump(IntlChar::isprint("Kites")); echo "<br>"; var_dump(IntlChar::isprint("&&")); echo "<br>"; var_dump(IntlChar::isprint("K")); ?>
Output
The following is the output −
bool(true) bool(true) bool(false)
Example
Let us see another example −
<?php var_dump(IntlChar::isprint("1234")); echo "<br>"; var_dump(IntlChar::isprint("1")); echo "<br>"; var_dump(IntlChar::isprint("hvhj165e615")); ?>
Output
The following is the output −
NULL bool(true) NULL
- Related Articles
- IntlChar::isalpha() function in PHP
- IntlChar::isbase() function in PHP
- IntlChar::isalnum() 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
- IntlChar::isIDPart() function in PHP

Advertisements