Home > PHP > Function > Gettext > ngettext()

ngettext()

ngettext - Plural version of gettext

Syntax

string ngettext (string $msgid1, string $msgid2, int $n)

Arguments

  • msgid1
  • msgid2
  • n

Description

The plural version of gettext(). Some languages have more than one form for plural messages dependent on the count.

Version

PHP 4.2.0, 5

Return value

Returns correct plural form of message identified by msgid1 and msgid2 for count n.