IntlChar::isMirrored

(PHP 7)

IntlChar::isMirroredCheck if code point has the Bidi_Mirrored property

Descrierea

public static IntlChar::isMirrored ( mixed $codepoint ) : bool

Determines whether the code point has the Bidi_Mirrored property.

This property is set for characters that are commonly used in Right-To-Left contexts and need to be displayed with a "mirrored" glyph.

Parametri

codepoint

Valoarea codepoint de tip integer (de ex. 0x2603 pentru U+2603 SNOWMAN) sau caracterul codificat ca string în UTF-8 (de ex. "\u{2603}")

Valorile întoarse

Returns true if codepoint has the Bidi_Mirrored property, false if not.

Exemple

Example #1 Testarea diferitor code points

<?php
var_dump
(IntlChar::isMirrored("A"));
var_dump(IntlChar::isMirrored("<"));
var_dump(IntlChar::isMirrored("("));
?>

Exemplul de mai sus va afișa:

bool(false)
bool(true)
bool(true)

A se vedea și

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top