How to print multidimensional arrays in php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3717967/php-how-do-i-print-this-multidimensional-array">php - How do I print this multidimensional array?</a>  </p>
</blockquote>



<p>I have an array in below format </p>

<pre>Array ( [0] => Array ( [product_id] => 33 [amount] => 1 ) [1] => Array ( [product_id] => 34 [amount] => 3 ) [2] => Array ( [product_id] => 10 [amount] => 1 ) ) </pre>

<p>I want to get output from that array as below format</p>

<pre>
Product ID    Amount
33             1
34             3
10             1
</pre>

<p>Can anyone please help me regarding this problem. var_dump of the variable is.</p>

<pre>
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)

</pre>
