PHP 8.1.0 RC 2 available for testing

IntlChar::isMirrored

(PHP 7, PHP 8)

IntlChar::isMirroredCheck if code point has the Bidi_Mirrored property

Açıklama

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.

Değiştirgeler

codepoint

int türünde Unicode karakter kodu (örn. U+2603 SNOWMAN için 0x2603) veya string türünde Unicode karakter kodu (örn. "\u{2603}")

Dönen Değerler

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

Örnekler

Örnek 1 Farklı karakter kodlarının denenmesi

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

Yukarıdaki örneğin çıktısı:

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

Ayrıca Bakınız

add a note add a note

User Contributed Notes

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