two array in Foreach
<p>Good morning, folks.</p>

<p>I have a question here.</p>

<p>I have three select. Brings first product, quantity brings Second, Third brings value.
These are more select muntiplos as an array;</p>

<pre><code>Ex:
$quantity = "1,2,3";
$value = "20.00,30.00,20.00";
</code></pre>

<p>Foreach had to do it.</p>

<pre><code>    qty  value
$S ="1 * 20.00";
$S ="2 * 30.00";
$S ="1 * 20.00";
</code></pre>

<p>I am sending the page to have two to do the calculation.
More not getting to do two foreach with the data value and quantity.</p>

<p>Anyone know how I can sum this Vazer?</p>

<p>I would be very grateful.</p>

<pre><code>EX:
  &lt;select class="product" name=product[]" id="product[]"&gt;
             &lt;option value="1"&gt; Plan 1 &lt;/ option&gt;
             &lt;option value="2"&gt; Plan 2 &lt;/ option&gt;
  &lt;/ select&gt;

  &lt;select class="quantity" name=quantity[]" id="quantity[]"&gt;
             &lt;option value="1"&gt; 1 &lt;/ option&gt;
             &lt;option value="2"&gt; 2 &lt;/ option&gt;
  &lt;/ select&gt;

  &lt;select class="value" name=value[]" id="value[]"&gt;
             &lt;option value="1"&gt; 20:00 &lt;/ option&gt;
             &lt;option value="2"&gt; 30.00 &lt;/ option&gt;
  &lt;/ select&gt;

Post
$quantity = $_POST["quantity"];
$value    = $_POST["value"];

$quantity = explode(',', $quantity_e);
$value    = explode(',', $value_e);

foreach ($quantity  as $q &amp;&amp; $value as $v) { // ???

$v = $v * $q; // ????

}
</code></pre>
