title: To convert foreach statements to for -loops in PHP
body: <p><strong>How can you convert foreach -statements to for -loops in PHP?</strong></p>
  <p>Examples to be used in your answers</p>
  <h1>1</h1>
  <pre><code> foreach( $end_array[1]['tags'] as $tag )
  </code></pre>
  <p>and</p>
  <h1>2</h1>
  <pre><code> foreach($end_array as $question_id =&gt; $row2)
  </code></pre>