IntlChar::getFC_NFKC_Closure

(PHP 7, PHP 8)

IntlChar::getFC_NFKC_ClosureGet the FC_NFKC_Closure property for a code point

Descrição

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

Gets the FC_NFKC_Closure property string for a character.

Parâmetros

codepoint

Um codepoint integer (por exemplo 0x2603 para U+2603 SNOWMAN), ou um caracter codificado como uma string UTF-8 (exemplo "\u{2603}")

Valor Retornado

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

Exemplos

Exemplo #1 Testando codepoints diferentes

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

O exemplo acima irá imprimir:

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