title: declaring 3d array in php
body: <p>I need to declare (not define) three dimensional array in PHP and then assign values to it. </p>
  
  <p>For example,</p>
  
  <pre><code>&lt;?php
  $item = array(
     array("item1", 22, 18),
     array("Item2", 15, 13),
     array("Item3", 5, 2),
  );
  ?&gt;
  </code></pre>
  
  <p>This is how I want my array. I first want to declare this <code>$item</code> array and then assign those three values (e.g <code>item1, 22, 18</code>) to it. Please help me with this and also how to access this array.</p>