![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
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::ord() function in PHP
The IntlChar::ord()function is used to return the Unicode code point value of the entered character.
Syntax
int IntlChar::ord( char_unicode )
Parameters
char_unicode − A Unicode Character
Return
The IntlChar::ord()function returns theUnicode value as an integer.
Example
The following is an example −
<?php var_dump(IntlChar::ord("H")); echo "<br>"; var_dump(IntlChar::ord("9")); ?>
Output
The following is the output −
int(72) int(57)
Example
Let us see another example −
<?php var_dump(IntlChar::ord("%")); echo "<br>"; var_dump(IntlChar::ord("Fine!")); ?>
Output
The following is the output −
int(37) NULL
Advertisements