title: The best way to increase every item of php array by the same value
body: <p>What's the best way to increase every item of php numeric array by the same value?</p>
  
  <p>Based on this <a href="https://stackoverflow.com/questions/1596988/fastest-way-to-iterate-array-in-php">question</a> in SO
  one of the best answers for this question is:</p>
  
  <pre><code>foreach($array as $key =&gt; &amp;$val) { 
    $val+=5;//   typo   $val[$key]+=5; was just fixed.
  }
  </code></pre>
  
  <p>Correct?</p>
  
  <p>Is there any better/shorter/faster way to do that?</p>