title: php looping through multiple arrays
body: <p>okay so I have two arrays</p>
  
  <pre><code>$array_one([a]=&gt;2,[b]=&gt;1,[c]=&gt;1);
  $array_two([a]=&gt;1,[b]=&gt;2,[c]=&gt;1);
  </code></pre>
  
  <p>I want to be able to loop through both of these arrays simultaneously so I can make simple comparisons. I looked at using a foreach loop but I can only process the information one array at a time. I also looked at merging the arrays but I can not see the use in doing this since I need both the keys and values to make the comparisons. does anyone have a solution to this problem? I appreciate your time in advanced. </p>
  
  <p>to be specific on the comparisons i want to something to this extent</p>
  
  <pre><code>if ($keyone == $keytwo &amp;&amp; $valuetwo &lt;= $valueone)
  {
     print_r ($array_two);
  }
  </code></pre>
  
  <p>Would it be possible to use recursion to loop instead of using and iterative loop?</p>