(PHP 7)
IntlChar::getBidiPairedBracket — Get the paired bracket character for a code point
Maps the specified character to its paired bracket character.
For Bidi_Paired_Bracket_Type!=None, this is the same as IntlChar::charMirror().
Otherwise codepoint
itself is returned.
Returns the paired bracket code point, or codepoint
itself if there is no such mapping.
Tipul întors va fi integer, doar dacă code point nu a fost transmis ca string UTF-8, în care caz va fi întors un string.
Example #1 Testarea diferitor code points
<?php
var_dump(IntlChar::getBidiPairedBracket(91));
var_dump(IntlChar::getBidiPairedBracket('['));
?>
Exemplul de mai sus va afișa:
int(93) string(1) "]"
IntlChar::PROPERTY_BIDI_PAIRED_BRACKET
IntlChar::PROPERTY_BIDI_PAIRED_BRACKET_TYPE