IntlChar::getFC_NFKC_Closure

(PHP 7)

IntlChar::getFC_NFKC_ClosureGet the FC_NFKC_Closure property for a code point

Opis

public static IntlChar::getFC_NFKC_Closure ( mixed $codepoint ) : string

Gets the FC_NFKC_Closure property string for a character.

Parametry

codepoint

Wartość typu integer dla punktu kodowego (np. 0x2603 dla U+2603 SNOWMAN) lub znak zakodowany jako string UTF-8 (np. "\u{2603}")

Zwracane wartości

Returns the FC_NFKC_Closure property string for the codepoint, or an empty string if there is none.

Przykłady

Przykład #1 Testowanie różnych punktów kodowych

<?php
var_dump
(IntlChar::getFC_NFKC_Closure("\u{2121}"));
var_dump(IntlChar::getFC_NFKC_Closure("\u{1D2D}"));
?>

Powyższy przykład wyświetli:

string(3) "tel"
string(2) "æ"
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top