php8.5
Home/ Manual/ intl / intlchar/ IntlChar::foldCase

IntlChar::foldCase

PHP function Edit on GitHub ✎

(PHP 7, PHP 8)

Perform case folding on a code point

Description

IntlChar::foldCase(int|string $codepoint, int $options = IntlChar::FOLD_CASE_DEFAULT): int|string|null

The given character is mapped to its case folding equivalent; if the character has no case folding equivalent, the character itself is returned.

Parameters

codepoint

Parameter

options

Either IntlChar::FOLD_CASE_DEFAULT (default) or IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I.

Return Values

Returns the Simple_Case_Folding of the code point, if any; otherwise the code point itself on success, or null on failure.

Source: reference/intl/intlchar/foldcase.xml · from the official PHP manual (php/doc-en)