Symfony\Polyfill\Mbstring

Mbstring::mb_substitute_character │ public static │ CF7 1.0

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

Хуков нет.

Возвращает

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

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

$result = Mbstring::mb_substitute_character( $c );
$c
.
По умолчанию: null

Код Mbstring::mb_substitute_character() CF7 6.2.4.1

public static function mb_substitute_character($c = null)
{
    if (null === $c) {
        return 'none';
    }
    if (0 === strcasecmp($c, 'none')) {
        return true;
    }
    if (80000 > \PHP_VERSION_ID) {
        return false;
    }
    if (\is_int($c) || 'long' === $c || 'entity' === $c) {
        return false;
    }

    throw new \ValueError('Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint');
}