(PHP 7, PHP 8)
IntlChar::getCombiningClass — Get the combining class of a code point
$codepoint
): ?intReturns the combining class of the code point.
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}"
)
Returns the combining class of the character. Returns null
on failure.
Örnek 1 Farklı karakter kodlarının denenmesi
<?php
var_dump(IntlChar::getCombiningClass("A"));
var_dump(IntlChar::getCombiningClass("\u{0334}"));
var_dump(IntlChar::getCombiningClass("\u{0358}"));
?>
Yukarıdaki örneğin çıktısı:
int(0) int(1) int(232)