Je ne sais pas ou la placer pour que $value2 s'affiche dans le bon ordre?
?php
$facture = 0;
while( $factures = $factures_sql->fetch() )
{
$article_star = 0;
while ($article_star < count($array_articlestitre[$facture]))
{
if(!empty($array_articlestitre[$facture][$article_star]))
{
$i = 0;
foreach ($array_articlestitre[$facture] as $value)
{
if($value == $array_articlestitre[$facture][$article_star])
$i++;
}
$test[$facture][$article_star][] = $i . '. ' . $array_articlestitre[$facture][$article_star] . '<br />';
foreach ($test[$facture][$article_star] as $value2)
{
echo $value2;
}
}
$article_star++;
}
}
$facture++;
?>