string _toWords(
[integer
$num = 0], [array
$noun = array()])
|
|
Converts a number to its word representation in Romanian
Romanian uses a complex set of rules for numerals, and a lot of inflections are interdependent. As such, this class implements an easy means for authors to count either abstract numbers (in which case the second parameter should be omitted), or actual nouns. In the latter case, a noun must be provided as an indexed array containing three values:
- => the singular form
- => the plural form
- => the noun's gender, as one of the following constants:
- Numbers_Words::GENDER_MASCULINE for masculine nouns
- Numbers_Words::GENDER_FEMININE for feminine nouns
- Numbers_Words::GENDER_NEUTER for neuter nouns
Parameters: