Cómo imprimir matrices multidimensionales en php [duplicado]
Posible duplicado:
php - ¿Cómo imprimo esta matriz multidimensional?
Tengo una matriz en formato de abajo
Array ( [0] => Array ( [product_id] => 33 [amount] => 1 ) [1] => Array ( [product_id] => 34 [amount] => 3 ) [2] => Array ( [product_id] => 10 [amount] => 1 ) )
Quiero obtener salida de esa matriz como el formato a continuación
Product ID Amount 33 1 34 3 10 1
¿Alguien por favor me puede ayudar con respecto a este problema. var_dump de la variable es.
array 0 => array 'product_id' => string '33' (length=2) 'amount' => string '1' (length=1) 1 => array 'product_id' => string '34' (length=2) 'amount' => string '3' (length=1) 2 => array 'product_id' => string '10' (length=2) 'amount' => string '1' (length=1)