Change language

PHP IntlChar foldCase () function

Syntax:
mixed IntlChar::foldCase ($codepoint, $options = IntlChar::FOLD_CASE_DEFAULT)
Parameters:This function takes two parameters as above and described below:
  • $codepoint:this parameter is a character or integer value which is encoded as a UTF-8 string.
  • $options:this parameter contains character constants IntlChar::FOLD_CASE_DEFAULT by default or IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I.
Return value:This function returns the Simple_Case_Folding code point. If a code point does not have a folding equivalent, then the code point itself is returned.The following program illustrates the IntlChar::foldCase() functionin PHP:Program:
// PHP- program for illustrating the IntlChar::foldCase() function var_dump (IntlChar::foldCase ( ’AA’ , IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I)); var_dump (IntlChar::foldCase ( ’@’ , IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I)); var_dump (IntlChar::foldCase ( ’& amp;’ , IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I)); var_dump (IntlChar::foldCase ( ’C’ , IntlChar::FOLD_CASE_DEFAULT)); var_dump (IntlChar::foldCase ( ’Lt’ , IntlChar::FOLD_CASE_DEFAULT)); var_dump (IntlChar::foldCase ( ’/’ , IntlChar::FOLD_CASE_DEFAULT)); var_dump (IntlChar::foldCase ( ’g’ , IntlChar::FOLD_CASE_DEFAULT)); var_dump (IntlChar::foldCase ( ’1’ , IntlChar::FOLD_CASE_DEFAULT));  
?>
Exit:
NULL string ( 1) "@" string (1) "& amp;" string (1) "c" NULL string (1) "/" string (1) "g" string (1) "1"
Link: https://www.php.net/manual/en/intlchar.foldcase.php

Shop

Best laptop for Sims 4

$

Best laptop for Zoom

$499

Best laptop for Minecraft

$590

Best laptop for engineering student

$

Best laptop for development

$

Best laptop for Cricut Maker

$

Best laptop for hacking

$890

Best laptop for Machine Learning

$950

Latest questions

NUMPYNUMPY

psycopg2: insert multiple rows with one query

12 answers

NUMPYNUMPY

How to convert Nonetype to int or string?

12 answers

NUMPYNUMPY

How to specify multiple return types using type-hints

12 answers

NUMPYNUMPY

Javascript Error: IPython is not defined in JupyterLab

12 answers

Wiki

Python OpenCV | cv2.putText () method

numpy.arctan2 () in Python

Python | os.path.realpath () method

Python OpenCV | cv2.circle () method

Python OpenCV cv2.cvtColor () method

Python - Move item to the end of the list

time.perf_counter () function in Python

Check if one list is a subset of another in Python

Python os.path.join () method