- 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 isdefined() function in PHP
The IntlChar isdefined() function checks whether the entered value is defined or not.
Syntax
bool IntlChar::isdefined (val)
Parameters
val − An integer or character encoded as a UTF-8 string.
Return
The IntlChar isdefined() function returns TRUE if val is a defined character.
Example
The following is an example −
<?php var_dump(IntlChar::isdefined("Z")); echo "<br>"; var_dump(IntlChar::isdefined(" ")); echo "<br>"; var_dump(IntlChar::isdefined("HJHK")); echo "<br>"; var_dump(IntlChar::isdefined("89")); ?>
Output
The following is the output −
bool(true) bool(true) NULL NULL
Advertisements