IntlListFormatter::__construct
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
IntlListFormatter::__construct
Референца за `intllistformatter.construct.php` со подобрена типографија и навигација.
IntlListFormatter::__construct
(Нема достапни информации за верзијата, можеби е само во Git)
IntlListFormatter::__construct — Creates a new IntlListFormatter instance
= NULL
$locale, int $type = IntlListFormatter::TYPE_AND, int $width = IntlListFormatter::WIDTH_WIDE)Создава нов IntlListFormatter instance for the given locale.
Параметри
locale-
The locale to use for formatting.
type-
The list type. One of the
IntlListFormatter::TYPE_*константите:IntlListFormatter::TYPE_AND,IntlListFormatter::TYPE_OR, илиIntlListFormatter::TYPE_UNITS. width-
The list width. One of the
IntlListFormatter::WIDTH_*константите:IntlListFormatter::WIDTH_WIDE,IntlListFormatter::WIDTH_SHORT, илиIntlListFormatter::WIDTH_NARROW.
Errors/Exceptions
Фрла IntlException if the formatter cannot be created (e.g. invalid locale or ICU version is below 67).
Дневник на промени
| Верзија | = NULL |
|---|---|
| 8.5.0 | The class was added. |
Види Исто така
- IntlListFormatter::format() - Format a list of items