bind_textdomain_codeset

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

bind_textdomain_codesetSpecify or get the character encoding in which the messages from the DOMAIN message catalog will be returned

说明

bind_textdomain_codeset ( string $domain , string|null $codeset ) : string|false

bind_textdomain_codeset() allows to set or get the encoding in which messages from domain will be returned by gettext() and similar functions.

参数

domain

The domain.

codeset

The code set. If null, the currently set encoding is returned.

返回值

A string on success.

更新日志

版本 说明
8.0.3 codeset is nullable now. Previously, it was not possible to retrieve the currently set encoding.

注释

注意:

The bind_textdomain_codeset() information is maintained per process, not per thread.