title: How can I loop through multidimensional array without using foreach
body: <p>Looping through a multidimensional array requires <code>foreach</code> loop in PHP usually so I was wondering can it be done using the </p>
  
  <pre><code>for(int $i=0;i&lt;3;$i++)
  </code></pre>
  
  <p>format.</p>
  
  <p>example of multidimensional array:</p>
  
  <pre><code>$array = array (array(3,4,5,7), array('r', 'g', 'q','c'));
  </code></pre>