- 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::charAge() function in PHP
The IntlChar::charAge() function is used to compute the age of the entered value, which is the Unicode version. This is when the value was first designated or assigned a character.
Syntax
array IntlChar::charAge( val)
Parameters
val − A character or integer value encoded as a UTF-8 string.
Return
The IntlChar::charAge() function returns the Unicode version number of an array, if true.
Example
The following is an example −
<?php var_dump(IntlChar::charage("\u{1F878}")); echo "<br>"; ?>
Output
The following is the output −
array(4) { [0]=> int(0) [1]=> int(0) [2]=> int(0) [3]=> int(0) }
Advertisements