The IntlChar::charMirror() function is an inbuilt function in PHP which is used to find the “mirror-image” character from the given input code point character, which maps the specified character.
mixed IntlChar::charMirror( $codepoint )
Parameters: This function accepts a single parameter $codepoint which is mandatory. The input parameter is a character or integer value, which is encoded as a UTF-8 string.
Return Value: This function returns another Unicode code point that may serve as a mirror-image substitute, or codepoint itself if there is no such mapping or the codepoint does not have the Bidi_Mirrored property. The function returns an integer unless code point was passed in UTF-8 string and a string will be returned.
Below programs illustrate the IntlChar::charMirror() Function in PHP.
string(1) "A" string(1) "B" string(1) "&" string(1) "}" string(1) "^" string(1) "[" string(1) "2" NULL
string(1) "G" NULL NULL string(1) "7" string(1) "F" NULL NULL string(1) " "
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.