(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
dngettext — Plural version of dgettext
dngettext( string $domain, string $singular, string $plural, int $count ): string
The dngettext() function allows you to override the current domain for a single plural message lookup.
domainThe domain
singularpluralcountA string on success.
Throws a ValueError if domain is the empty string.
| Version | Description |
|---|---|
| 8.4.0 | Now throws a ValueError if domain is the empty string. |
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.dngettext.php