$colors = array('red', 'yellow', 'green');
$flavors = array('apple', 'banana', 'lime');
$tastes = array('sweet', 'sour');
$prices = array();
$name = 'lemon';
$arrays = array('name' => $name, 'prices' => $prices, 'flavors' => $flavors);
foreach($arrays as $key => $value) {
if($fruits = @array_combine($colors, $value))
printf("%s
\n", var_export($fruits, TRUE));
else
printf("Couldn't combine \$colors and \$%s.
", $key);
}
?>