Symfony\Polyfill\Mbstring

Mbstring::foldCase │ private static │ CF7 1.0

Folds the case of UTF-8 $s like the simple case folding of native mbstring.

Метод класса: Mbstring{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Mbstring::foldCase( $s ): string;
$s(строка) (обязательный)
.

Код Mbstring::foldCase() CF7 6.2.4.1

private static function foldCase(string $s): string
{
    static $map = null;

    if (null === $map) {
        $map = array_combine(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1]) + self::getData('lowerCase');
        unset($map["\xC4\xB0"]); // U+0130 has no simple case folding
    }

    return strtr($s, $map);
}