title: Looping 2 arrays at once in PHP
body: <p>I have 2 arrays and the idea is to check a <strong>house</strong> that is for <strong>sale</strong> or <strong>rent</strong>, same goes for an <strong>apartment</strong>.</p>
  
  <p>The problem is that it only loops the house for sale and not for rent or even the apartment.</p>
  
  <pre><code>$accoTypes = ["house","apartment"];
  $accoPrefers = ["sale","rent"];
  
  foreach ($accoTypes as $accoType) {
  
      foreach ($accoPrefers as $accoPrefer) {
  </code></pre>