PHP 8.5.0 Alpha 2 available for testing

IntlChar::getFC_NFKC_Closure

(PHP 7, PHP 8)

IntlChar::getFC_NFKC_ClosureDevuelve la propiedad FC_NFKC_Closure para un punto de código

Descripción

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

Devuelve la propiedad FC_NFKC_Closure para un carácter.

Parámetros

codepoint

The int codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")

Valores devueltos

Devuelve la propiedad FC_NFKC_Closure para el codepoint, o una cadena vacía si no existe. Devuelve null o false en caso de error.

Ejemplos

Ejemplo #1 Testing different code points

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

El ejemplo anterior mostrará :

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

User Contributed Notes

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