title: Multiple variables access through foreach in php
body: <pre><code>foreach ($courses as $course, $sections as $section, $example as $example)
  </code></pre>
  
  <p>any ways to add more than 2?</p>
  
  <p>i only know the solution to 2 variables.</p>
  
  <pre><code>foreach (array_combine($courses, $sections) as $course =&gt; $section)
  </code></pre>