(No version information available, might only be in Git)
IntlListFormatter::format — Format a list of items
Formats a list of items as a locale-appropriate string.
list
The formatted list as a string, or false on failure.
示例 #1 IntlListFormatter::format() example
<?php
$fmt = new IntlListFormatter('en_US', IntlListFormatter::TYPE_AND, IntlListFormatter::WIDTH_WIDE);
echo $fmt->format(['one', 'two', 'three']);
// one, two, and three
$fmt = new IntlListFormatter('en_US', IntlListFormatter::TYPE_OR, IntlListFormatter::WIDTH_WIDE);
echo $fmt->format(['one', 'two', 'three']);
// one, two, or three
?>