(No version information available, might only be in Git)
IntlListFormatter::format — 項目のリストをフォーマットする
項目のリストを、ロケールに応じた文字列にフォーマットします。
list
フォーマットしたリストを文字列で返します。失敗した場合は false を返します。
例1 IntlListFormatter::format() の例
<?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
?>