IntlChar
PHP Manual

IntlChar::isMirrored

(PHP 7)

IntlChar::isMirroredCheck if code point has the Bidi_Mirrored property

Descrierea

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

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


IntlChar
PHP Manual