title: store loop value in array
body: <p>I  want to store all value in a array and get out from the loop is it possible?</p>
  
  <pre><code>&lt;?php
      $a=array('a', 'b', 'c');
      foreach($a as $b)
      {
          for($i=0; $i&lt;count($a); $i++)
          {
              $c = array();
              $c[$i] = $b;     
          }
  
          print_r($c);
      }
  ?&gt;
  </code></pre>