IntlChar::getFC_NFKC_Closure
(PHP 7)
IntlChar::getFC_NFKC_Closure — Get the FC_NFKC_Closure property for a code point
説明
public static IntlChar::getFC_NFKC_Closure
( mixed $codepoint
) : string
Gets the FC_NFKC_Closure property string for a character.
パラメータ
codepoint
- コードポイントを表す int 型の値 (例: U+2603 SNOWMAN を表す
0x2603
)、あるいは UTF-8 文字列としてエンコードされた文字 (例:"\u{2603}"
)。
返り値
Returns the FC_NFKC_Closure property string for the codepoint
, or an empty string if there is none.
例
例1 さまざまなコードポイントの例
<?phpvar_dump(IntlChar::getFC_NFKC_Closure("\u{2121}"));var_dump(IntlChar::getFC_NFKC_Closure("\u{1D2D}"));?>
上の例の出力は以下となります。
string(3) "tel" string(2) "æ"