IntlChar::isMirrored

(PHP 7)

IntlChar::isMirroredCheck if code point has the Bidi_Mirrored property

Opis

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.

Parametry

codepoint

Wartość typu integer dla punktu kodowego (np. 0x2603 dla U+2603 SNOWMAN) lub znak zakodowany jako string UTF-8 (np. "\u{2603}")

Zwracane wartości

Returns TRUE if codepoint has the Bidi_Mirrored property, FALSE if not.

Przykłady

Przykład #1 Testowanie różnych punktów kodowych

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

Powyższy przykład wyświetli:

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

Zobacz też:

add a note add a note

User Contributed Notes

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