(PHP 7, PHP 8)
IntlChar::getCombiningClass — Get the combining class of a code point
Returns the combining class of the code point.
codepoint
Um codepoint integer (por exemplo 0x2603
para U+2603 SNOWMAN), ou um caracter codificado como uma string UTF-8 (exemplo "\u{2603}"
)
Returns the combining class of the character.
Exemplo #1 Testando codepoints diferentes
<?php
var_dump(IntlChar::getCombiningClass("A"));
var_dump(IntlChar::getCombiningClass("\u{0334}"));
var_dump(IntlChar::getCombiningClass("\u{0358}"));
?>
O exemplo acima irá imprimir:
int(0) int(1) int(232)