(No version information available, might only be in Git)
IntlListFormatter::__construct — Creates a new IntlListFormatter instance
$locale, int $type = IntlListFormatter::TYPE_AND, int $width = IntlListFormatter::WIDTH_WIDE)Creates a new IntlListFormatter instance for the given locale.
localetypeIntlListFormatter::TYPE_* constants:
IntlListFormatter::TYPE_AND,
IntlListFormatter::TYPE_OR, or
IntlListFormatter::TYPE_UNITS.
widthIntlListFormatter::WIDTH_* constants:
IntlListFormatter::WIDTH_WIDE,
IntlListFormatter::WIDTH_SHORT, or
IntlListFormatter::WIDTH_NARROW.
Throws an IntlException if the formatter cannot be created (e.g. invalid locale or ICU version is below 67).
| Version | Description |
|---|---|
| 8.5.0 | The class was added. |