IntlChar isMirrored() function in PHP

The IntlChar isMirrored()function is used to check whether the entered value contains Bidi_Mirrored property or not.

Syntax

bool IntlChar::isMirrored (val)

Parameters

  • val − An integer or character encoded as a UTF-8 string.

Return

The IntlChar isMirrored()function returns TRUE if the entered value has the Bidi_Mirrored property

Example

The following is an example −

";
   var_dump(IntlChar::isMirrored(">"));
   echo "
";    var_dump(IntlChar::isMirrored("p"));    echo "
";    var_dump(IntlChar::isMirrored("*"));    echo "
"; ?>

Output

The following is the output −

bool(true)
bool(true)
bool(false)
bool(false)
Updated on: 2019-12-30T10:12:25+05:30

77 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements