Skip to content

Novis\Intl\PluralRules

Gives the plural category of numbers in a language. You use the category to choose the right form of a word, such as "1 file" or "2 files". Each method takes a whole list and a locale tag.

Members

2 members.

MemberSignature
cardinalcardinal(array<int|float|decimal> $numbers, string $locale): array<Core\Cldr::PluralCategory>
ordinalordinal(array<int|float|decimal> $numbers, string $locale): array<Core\Cldr::PluralCategory>