Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 290 Bytes

plural.rst

File metadata and controls

15 lines (10 loc) · 290 Bytes

Punic\Plural class

Need to know the plural of a number? Use this class.

use Punic\Plural;

echo Plural::getRule(1, 'en');
// Output: one

echo Plural::getRule(2, 'en');
// Output: other