(No version information available, might only be in Git)
IntlListFormatter::__construct — Cria uma instância de IntlListFormatter
$locale, int $type = IntlListFormatter::TYPE_AND, int $width = IntlListFormatter::WIDTH_WIDE)Cria uma nova instância de IntlListFormatter para a localidade informada.
localeA localidade a ser usada para a formatação.
type
O tipo de lista. Uma das constantes IntlListFormatter::TYPE_*:
IntlListFormatter::TYPE_AND,
IntlListFormatter::TYPE_OR ou
IntlListFormatter::TYPE_UNITS.
width
A amplitude da lista. Uma das constantes IntlListFormatter::WIDTH_*:
IntlListFormatter::WIDTH_WIDE,
IntlListFormatter::WIDTH_SHORT ou
IntlListFormatter::WIDTH_NARROW.
Lança uma IntlException se o formatador não puder ser criado (ex.: localidade inválida ou versão de ICU anterior à 67).
| Versão | Descrição |
|---|---|
| 8.5.0 | A classe foi adicionada. |