php8.5
Home/ Manual/ intl / intlchar/ IntlChar::isMirrored

IntlChar::isMirrored

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Check if code point has the Bidi_Mirrored property

Description

IntlChar::isMirrored(int|string $codepoint): bool|null

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.

Parameters

codepoint

Parameter

Return Values

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

Examples

Example

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

The above example will output:

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

See Also

Source: reference/intl/intlchar/ismirrored.xml · from the official PHP manual (php/doc-en)