title: Array to string conversion
body: <p>In this code, I'm trying to display image from an array however, I'm getting array to string conversion error. From what I've googled, you'll have to use <code>print_r</code> in order to print string but I'm not exactly sure how I can do that:</p>
  
  <pre><code>&lt;?php
  $item_array = array(
    1 =&gt; array('product_img' =&gt; "images/013_8c9f517a.jpg",
              'product_name' =&gt; "black tshirt",
              'product_price' =&gt; "€99.00"),
    2 =&gt; array('product_img' =&gt; "images/014_28ded7a4.jpg",
              'product_name' =&gt; "white tshirt",
              'product_price' =&gt; "€99.00"));
  
  echo "&lt;img src=$item_array[1]['product_img']&gt;";
  ?&gt;
  </code></pre>