utf8_decode()
Устарела. Больше не поддерживается и может быть удалена. Смотрите
{@see \mb_convert_encoding()}.Converts a string from UTF-8 to ISO-8859-1.
Хуков нет.
Возвращает
string. Text converted into ISO-8859-1.
Использование
utf8_decode( $utf8_text ): string;
- $utf8_text(строка) (обязательный)
- Text treated as UTF-8.
Список изменений
| С версии 6.9.0 | Введена. |
| Устарела | Use {@see \mb_convert_encoding()} instead. |
Код utf8_decode() utf8 decode WP 7.1.3
function utf8_decode( $utf8_text ): string {
_deprecated_function( __FUNCTION__, '6.9.0', 'mb_convert_encoding' );
return mb_convert_encoding( $utf8_text, 'ISO-8859-1', 'UTF-8' );
}
else :
/**
* @ignore
* @private
*
* @since 6.9.0
*/
function utf8_decode( $utf8_text ): string {
_deprecated_function( __FUNCTION__, '6.9.0', 'mb_convert_encoding' );
return _wp_utf8_decode_fallback( $utf8_text );
}