array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.dcgettext.php', 1 => 'dcgettext', 2 => 'Overrides the domain for a single lookup', ), 'up' => array ( 0 => 'ref.gettext.php', 1 => 'Gettext 函数', ), 'prev' => array ( 0 => 'function.bindtextdomain.php', 1 => 'bindtextdomain', ), 'next' => array ( 0 => 'function.dcngettext.php', 1 => 'dcngettext', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gettext/functions/dcgettext.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

dcgettext

(PHP 4, PHP 5, PHP 7, PHP 8)

dcgettextOverrides the domain for a single lookup

说明

dcgettext(string $domain, string $message, int $category): string

This function allows you to override the current domain for a single message lookup.

参数

domain

The domain

message

The message

category

The category

返回值

A string on success.

参见