IntlChar getFC_NFKC_Closure() function in PHP


The IntlChar getFC_NFKC_Closure() function is used to get the FC_NFKC_Closure property for the value val.

Syntax

IntlChar::getFC_NFKC_Closure(val)

Parameters

  • val − An integer or character encoded as a UTF-8 string.

Return

The IntlChar getFC_NFKC_Closure()function returns the FC_NFKC_Closure property string for the entered value val.

Example

The following is an example −

<?php
   // Input data is string type
   var_dump(IntlChar::getFC_NFKC_Closure("p{34}"));
   echo "<br>";
   // Input data is character type
   var_dump(IntlChar::getFC_NFKC_Closure(" "));
   echo "<br>";
   // Input data is unicode character type
   var_dump(IntlChar::getFC_NFKC_Closure("u{220}"));
   echo "<br>";
   // Input data is string type
   var_dump(IntlChar::getFC_NFKC_Closure("XYZ"));
?>

Output

The following is the output −

NULL
string(0) ""
NULL
NULL

Updated on: 31-Dec-2019

48 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements