PHP | IntlChar getFC_NFKC_Closure() Function Last Updated : 03 Nov, 2020 Comments Improve Suggest changes Like Article Like Report The IntlChar::getFC_NFKC_Closure() function is an inbuilt function in PHP which is used to get the FC_NFKC_Closure property for a code point. This function returns the FC_NFKC_Closure property string for the code point. If the code point is none then it returns an empty string. Syntax: string IntlChar::getFC_NFKC_Closure( $codepoint ) Parameters: This function accepts a single parameter $codepoint which is mandatory. The $codepoint value is an integer values or character, which is encoded as a UTF-8 string. Return Value: This function returns the FC_NFKC_Closure property string for the code point, or an empty string if there is none. Below programs illustrate the IntlChar::getFC_NFKC_Closure() function in PHP: Program 1: php <?php // PHP function to illustrate // the use of IntlChar::getFC_NFKC_Closure() // Input data is unicode character type var_dump(IntlChar::getFC_NFKC_Closure("\u{2121}")); // Input data is unicode character type var_dump(IntlChar::getFC_NFKC_Closure("\u{1D2D}")); // Input data is string type var_dump(IntlChar::getFC_NFKC_Closure("\p{143}")); // Input data is character type var_dump(IntlChar::getFC_NFKC_Closure(" ")); // Input data is unicode character type var_dump(IntlChar::getFC_NFKC_Closure("\u{350}")); // Input data is string type var_dump(IntlChar::getFC_NFKC_Closure("XYZ")); // Input data is unicode character type var_dump(IntlChar::getFC_NFKC_Closure("\u{0358}")); ?> Output: string(3) "tel" string(2) "æ" NULL string(0) "" string(0) "" NULL string(0) "" Program 2: php <?php // PHP code to illustrate getFC_NFKC_Closure() // Declare an array $arr $arr = array("\u{2121}", "\u{1D2D}", " ", "\u{350}", "XYZ", "G", "GeeksforGeeks", "^"); // Loop run for every array element foreach ($arr as $val){ // Check each element as code point data var_dump(IntlChar::getFC_NFKC_Closure($val)); } ?> Output: string(3) "tel" string(2) "æ" string(0) "" string(0) "" NULL string(0) "" NULL string(0) "" Related Articles: PHP | IntlChar::ord() Function PHP | IntlChar toupper() Function PHP | IntlChar isgraph() Function Reference: http://php.net/manual/en/intlchar.getfc-nfkc-closure.php Comment More infoAdvertise with us Next Article PHP | IntlChar getFC_NFKC_Closure() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP PHP-function PHP-Intl +1 More Practice Tags : Misc Similar Reads PHP | IntlChar::chr() Function The IntlChar::chr() function is an inbuilt function in PHP which is used to check whether the given input character is Unicode code point value or not. It returns Unicode character by code point value.Syntax: string IntlChar::chr( $codepoint ) Parameters: This function accepts a single parameter $co 2 min read PHP | IntlChar::charAge() Function The IntlChar::charAge() function is an inbuilt function in PHP which is used to calculate the age of code point. Where the age is Unicode version when the code point was first designated or assigned a character. This can be useful to avoid emitting code points to receiving processes that do not acce 2 min read PHP IntlChar::charName() Function PHP IntlChar::charName() function is an inbuilt function in PHP used to retrieve the name of a Unicode character. Syntax: string IntlChar::charName( $codepoint [, $nameChoice = IntlChar::UNICODE_CHAR_NAME] ) Parameters: This function accepts two parameters as mentioned above and described below: $co 2 min read PHP | IntlChar foldCase() Function The IntlChar::foldCase() function is an inbuilt function in PHP which is used to perform case folding on a code point. Case folding means the given character is mapped to its equivalent lowercase characters.Syntax: mixed IntlChar::foldCase( $codepoint, $options = IntlChar::FOLD_CASE_DEFAULT ) Parame 1 min read PHP | IntlCalendar get() Function The IntlCalendar::get() function is an inbuilt function in PHP which is used to get the value for a specific field. Syntax: Object oriented style int IntlCalendar::get( int $field ) Procedural style int intlcal_get( IntlCalendar $cal, int $field ) Parameters: This function uses two parameters as men 2 min read Like