(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
$type
IntlListFormatter::TYPE_AND
$width
IntlListFormatter::WIDTH_WIDE
$list
Formats a list using conjunction (e.g. "A, B, and C").
IntlListFormatter::TYPE_OR
Formats a list using disjunction (e.g. "A, B, or C").
IntlListFormatter::TYPE_UNITS
Formats a list of units (e.g. "3 ft, 7 in").
Uses the widest (most verbose) list format, typically with conjunctions spelled out in full.
IntlListFormatter::WIDTH_SHORT
Uses a short list format, typically using abbreviations.
IntlListFormatter::WIDTH_NARROW
Uses the narrowest list format, with minimal punctuation.