Class Plural
Plural helper stuff.
Methods summary
public static
array<string>
|
|
public static
string
|
|
public static
string
|
#
getRuleOfType( string|integer|float $number, string $type, string $locale = '' )
Return the plural rule ('zero', 'one', 'two', 'few', 'many' or 'other') for a number and a locale. |
Constants summary
string |
RULETYPE_CARDINAL
Plural rule type: cardinal (eg 1, 2, 3, ...). |
#
'cardinal'
|
string |
RULETYPE_ORDINAL
Plural rule type: ordinal (eg 1st, 2nd, 3rd, ...). |
#
'ordinal'
|