php8.5
Home/ Manual/ intl / intlchar/ IntlChar::getFC_NFKC_Closure

IntlChar::getFC_NFKC_Closure

PHP function Edit on GitHub ✎

Get the FC_NFKC_Closure property for a code point

Description

IntlChar::getFC_NFKC_Closure(int|string $codepoint): string|false|null

Gets the FC_NFKC_Closure property string for a character.

Parameters

codepoint

Parameter

Return Values

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

Examples

Example

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

The above example will output:

output
string(3) "tel"
string(2) "æ"

Source: reference/intl/intlchar/getfc-nfkc-closure.xml · from the official PHP manual (php/doc-en)