(No version information available, might only be in Git)
Formats, orders, and punctuates a list of items according to locale-specific rules. Requires ICU 67 or later.
$locale, int $type = IntlListFormatter::TYPE_AND, int $width = IntlListFormatter::WIDTH_WIDE)IntlListFormatter::TYPE_ANDFormats a list using conjunction (e.g. "A, B, and C").
IntlListFormatter::TYPE_ORFormats a list using disjunction (e.g. "A, B, or C").
IntlListFormatter::TYPE_UNITSFormats a list of units (e.g. "3 ft, 7 in").
IntlListFormatter::WIDTH_WIDEUses the widest (most verbose) list format, typically with conjunctions spelled out in full.
IntlListFormatter::WIDTH_SHORTUses a short list format, typically using abbreviations.
IntlListFormatter::WIDTH_NARROWUses the narrowest list format, with minimal punctuation.
| Version | Description |
|---|---|
| 8.5.0 | The class was added. |