![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::charMirror() function in PHP
The IntlChar::charMirror() functionfind the “mirror-image” character from the entered character.
Syntax
IntlChar::charMirror(val)
Parameters
val − A character or integer value encoded as a UTF-8 string.
Return
The IntlChar::charMirror() function returns another Unicode code point that may serve as a mirror-image substitute, or codepoint itself if there is no such mapping or codepoint does not have the Bidi_Mirrored property.
Example
The following is an example −
<?php var_dump(IntlChar::charMirror("K")); echo "<br>"; var_dump(IntlChar::charMirror("*")); echo "<br>"; var_dump(IntlChar::charMirror("}")); echo "<br>"; var_dump(IntlChar::charMirror("[")); echo "<br>"; var_dump(IntlChar::charMirror("(")); echo "<br>"; ?>
Output
The following is the output −
string(1) "K" string(1) "*" string(1) "{" string(1) "]" string(1) ")"
Advertisements