(PHP 4 >= 4.2.0, PHP 5, PHP 7)
ngettext — Plural version of gettext
ngettext ( string $singular , string $plural , int $count ) : string
The plural version of gettext(). Some languages have more than one form for plural messages dependent on the count.
singular
The singular message ID.
plural
The plural message ID.
count
The number (e.g. item count) to determine the translation for the respective grammatical number.
Returns correct plural form of message identified by singular
and plural
for count count
.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.ngettext.php