mah... se spieghi a cosa serve magari ci sono altre soluzioni, p.es. però:

Codice PHP:
$c 0$l count($test);
foreach (
$test AS $chiave => $valore) { 
  echo 
$chiave " ==> " $valore "
"
;
  if (++
$c $l) print "SEPARATORE
"
;
};