(No version information available, might only be in Git)
IntlListFormatter::format — Formate une liste d'éléments
Formate une liste d'éléments sous la forme d'une chaîne de caractères adaptée aux paramètres régionaux.
listUn tableau de chaînes de caractères à formater sous la forme d'une liste.
La liste formatée sous la forme d'une chaîne de caractères, ou false en cas d'échec.
Exemple #1 Exemple avec 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
?>