CakeFest 2024: The Official CakePHP Conference

IntlChar::isMirrored

(PHP 7, PHP 8)

IntlChar::isMirroredCheck if code point has the Bidi_Mirrored property

Açıklama

public static IntlChar::isMirrored(int|string $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.

Bağımsız Değişkenler

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. Returns null on failure.

Ö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

User Contributed Notes

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