mb_language

(PHP 4 >= 4.0.6, PHP 5)

mb_language — Set/Get current language

Описание

mixed mb_language ([ string $language ] )

Set/Get the current language.

Список параметров

language

Used for encoding e-mail messages. Valid languages are "Japanese", "ja","English","en" and "uni" (UTF-8). mb_send_mail() uses this setting to encode e-mail.

Language and its setting is ISO-2022-JP/Base64 for Japanese, UTF-8/Base64 for uni, ISO-8859-1/quoted printable for English.

Возвращаемые значения

If language is set and language is valid, it returns TRUE. Otherwise, it returns FALSE. When language is omitted, it returns the language name as a string. If no language is set previously, it then returns FALSE.

Смотрите также

Коментарии

Автор:
In PHP 5.3, mb_language() returns "neutral" by default for me.
2014-06-10 14:55:08
http://php5.kiev.ua/manual/ru/function.mb-language.html
In PHP 5.5.9-1ubuntu4.11 (cli) it returns "neutral"
2015-08-05 15:11:29
http://php5.kiev.ua/manual/ru/function.mb-language.html
Автор:
In addition, the undocumented "neutral" is also accepted as a valid language setting. That is also the default value if the INI setting is not set:
<?php
var_dump
mb_language'neutral' ) );     // TRUE; accepted as language string
var_dumpmb_language() );                    // 'neutral'
?>

The documentation of this particular INI setting and function is ambiguous.
2018-07-30 03:22:15
http://php5.kiev.ua/manual/ru/function.mb-language.html

    Поддержать сайт на родительском проекте КГБ