codice:
$test = array("indice0"=>"valore0", "indice1"=>"valore1");

foreach($test as $indice => $valore) {

echo $indice.":".$valore."
";

}
stamperà:

indice0 : valore0
indice1 : valore1

è chiaro stu fatto?