|
The IntlListFormatter classIntroductionFormats, orders, and punctuates a list of items according to locale-specific rules. Requires ICU 67 or later. Class synopsis
IntlListFormatter
/* Constants */
public
const
int
IntlListFormatter::TYPE_AND;
public
const
int
IntlListFormatter::TYPE_OR;
public
const
int
IntlListFormatter::TYPE_UNITS;
public
const
int
IntlListFormatter::WIDTH_WIDE;
public
const
int
IntlListFormatter::WIDTH_SHORT;
public
const
int
IntlListFormatter::WIDTH_NARROW;
/* Methods */
public __construct(string
$locale, int $type = IntlListFormatter::TYPE_AND, int $width = IntlListFormatter::WIDTH_WIDE)public stringfalse format(array
$list)Predefined Constants
Changelog
|