title: Return php for-each output as an array
body: <p>For given foreach loop output is display using echo     </p>
  
  <pre class="lang-php prettyprint-override"><code>$output = array();
  $counts = array('45','55','75','95');
  
  foreach ($counts as $count) {
      $output= $count + 10 ;
      echo $output
  }
  </code></pre>
  
  <p>it gives </p>
  
  <pre class="lang-none prettyprint-override"><code>output : 556585105
  </code></pre>
  
  <p>But instead of printing this I want to store <code>$output</code> as an array variable.</p>
  
  <p>where I want to get <code>$output = array('55','65', '85', '105');</code> So later I can grab any value from <code>$output</code> using key value.</p>