Foreach

$a = array(
     "color" => "red",
     "taste" => "sweet",
     "shape" => "round",
     "name"  => "apple",
     3       => 4
);

foreach ($a as $value) {
  echo "Value: $value";
}
foreach ($a as $key => $value) {
  echo "Key: $key; Value: $value";
}

Value: red
Value: sweet
Value: round
Value: apple
Value: 4
Key: color; Value: red
Key: taste; Value: sweet
Key: shape; Value: round
Key: name; Value: apple
Key: 3; Value: 4