title: Foreach loop with multiple arrays
body: <p><strong>This is what I want:</strong></p>
  
  <hr>
  
  <pre><code>foreach($_POST['something'] as $something){
      foreach($_POST['example'] as $example){
          $query = mysql_query("INSERT INTO table (row, row2) VALUES ('{$something}','{$example}')");
      }
  
  }
  </code></pre>
  
  <p><code>$_POST['something']</code> and <code>$_POST['example']</code> are arrays from an input with</p>
  
  <p><code>name="something[]"</code> and <code>name="example[]"</code>.</p>
  
  <p><strong>The problem:</strong></p>
  
  <hr>
  
  <p>In this way I will send the data twice to database. So I need a solution where I can loop trough 2 arrays without seding the data twice.</p>
  
  <p><strong>EDIT</strong></p>
  
  <ul>
  <li>The two array will always have the same size</li>
  <li>In the mysql_query I will have other elements not just row, row2, and those will be static without any array.</li>
  </ul>