Assuming you don't need an associative array, since your question doesn't mention it.
This elegant PHP syntax allows you to:
<?php
$colors = array(array("wine","red"),
array("cheese","yellow"),
array("apple", "green"),
array("pear", "brown"));
print_r($arr);
?>
Conclusion:
Array
(
[0] => Array
(
[0] => wine
[1] => red
)
[1] => Array
(
[0] => cheese
[1] => yellow
)
[2] => Array
(
[0] => apple
[1] => green
)
[3] => Array
(
[0] => pear
[1] => brown
)
)
To iterate over access to all 0:
for($x = 0; $x < count($colors); $x++){
echo $colors[$x][0];
}
As an alternative
for($colors as $couple){
echo $couple[0];
}
EDIT: It seems you can really be better with associative though ..
$colors = array("wine" => "red",
"cheese" => "yellow",
"apple" => "green",
"pear" => "brown");
The reason you can still access the keys is:
for($colors as $key => $value){
echo $key . " is " . $value;
}