title: Multiply and add 2 arrays
body: <p>I have two variables one named <code>$corp_res</code>p:</p>
  
  <pre><code>var_dump($corp_resp)
  </code></pre>
  
  <blockquote>
    <p>string(3) "0.3" string(4) "0.35" string(3) "0.4" </p>
  </blockquote>
  
  <p>Other: <code>$corp_resp_template</code></p>
  
  <pre><code>var_dump($corp_res_template)´
  </code></pre>
  
  <blockquote>
    <p>string(3) "0.4" string(3) "0.6" string(3) "0.8" </p>
  </blockquote>
  
  <p>I want to add and multiply the arrays: </p>
  
  <pre><code>$total = (0.3*0.4)+(0.35*0.6) +(0.4*0.8) =&gt; 0,12+0.21+0,32 
  
  $total = 0.65
  </code></pre>
  
  <p>What is the best way to do that?</p>