STYLELOC.php
WIKINDX : Bibliographic Management system.
Tags
Table of Contents
Functions
- arrayMonthAndSeasonNames() : array<string|int, string>
- Return an array of months and season names
- monthAndSeasonName() : string
- Return a month or season name
- cardinalToOrdinal() : string
- Make an ordinal from a cardinal. Default is English
- cardinalToOrdinalWord() : string
- Convert ordinal to word
- cardinalToOrdinalWordLatin() : string
- Convert ordinal to word in Latin
- cardinalToGreek() : string
- convert cardinal (Arabic) to Greek numerals
- cardinalToRoman() : string
- convert cardinal (Arabic) to Roman numerals
Functions
arrayMonthAndSeasonNames()
Return an array of months and season names
arrayMonthAndSeasonNames(string $format[, string $locale = "en_GB" ]) : array<string|int, string>
Parameters
- $format : string
-
Short form (short), Long form (long) (Default is 'long')
- $locale : string = "en_GB"
-
Code of a locale (format: ll[_Script][_CC])(optional, 'en_GB' by default)
Tags
Return values
array<string|int, string>monthAndSeasonName()
Return a month or season name
monthAndSeasonName(int $number, string $format[, string $locale = "en_GB" ]) : string
Parameters
- $number : int
-
Month or season number
- $format : string
-
Short form (short), Long form (long) (Default is 'long')
- $locale : string = "en_GB"
-
Code of a locale (format: ll[_Script][_CC])(optional, 'en_GB' by default)
Tags
Return values
stringcardinalToOrdinal()
Make an ordinal from a cardinal. Default is English
cardinalToOrdinal(int $number[, string $locale = "en_GB" ][, string $gender = "m" ][, string $pre = '' ][, string $post = '' ]) : string
Parameters
- $number : int
-
Number value
- $locale : string = "en_GB"
-
Code of a locale (format: ll[_Script][_CC])(optional, 'en_GB' by default)
- $gender : string = "m"
-
One letter code for masculine (m), feminine (f) (optional, 'm' by default)
- $pre : string = ''
-
Tag framing the extension of the ordinal on the left
- $post : string = ''
-
Tag framing the extension of the ordinal on the right
Tags
Return values
stringcardinalToOrdinalWord()
Convert ordinal to word
cardinalToOrdinalWord(int $number[, string $locale = "en_GB" ][, string $gender = "m" ]) : string
This implementation is limited to the numeric range 1 to 10,000 for Latin, and to ICU spec. range for others (very high).
When a formatter is not defined or return an error, the English formatter is used instead.
When $number is negative, an empty string is returned.
Parameters
- $number : int
-
Positive number value
- $locale : string = "en_GB"
-
Code of a locale (format: ll[_Script][_CC])(optional, 'en_GB' by default)
- $gender : string = "m"
-
One letter code for masculine (m), feminine (f), or neutral (n) (optional, 'm' by default)
Tags
Return values
stringcardinalToOrdinalWordLatin()
Convert ordinal to word in Latin
cardinalToOrdinalWordLatin(int $number[, string $gender = "m" ]) : string
This implementation is limited to the numeric range 1 to 10,000. higher numbers are formatted with ICU English formatter instead.
When $number is negative, an empty string is returned.
Parameters
- $number : int
-
Positive number value
- $gender : string = "m"
-
One letter code for masculine (m), feminine (f), or neutral (n) (optional, 'm' by default)
Return values
stringcardinalToGreek()
convert cardinal (Arabic) to Greek numerals
cardinalToGreek(int $cardinal) : string
This implementation is limited to the numeric range 1 to 9,999 following the ancient greek alphabetical numeral system.
Its use is intended only for modern notation of years, centuries, or volumes ..., like Roman numbers in modern latin scripts.
When $cardinal is outside the accepted range, the empty string is returned.
Parameters
- $cardinal : int
Tags
Return values
stringcardinalToRoman()
convert cardinal (Arabic) to Roman numerals
cardinalToRoman(int $cardinal) : string
This implementation is limited to the numeric range 0 to 3,999 following the standard form of Roman numerals, plus the medieval nulla (N).
Its use is intended only for modern notation of years, centuries, or volumes ...
When $cardinal is outside the accepted range, the empty string is returned.
Parameters
- $cardinal : int