title: Assiging a new variable to each iteration of a foreach loop
body: <p>Im trying to create a for each loop that will provide a different variable for each iteration of the array. </p>
  
  <p>As it stands my loop will run and my variable $new will be the final value only, 17. Is there a way to get a different variable assigned to each iteration?</p>
  
  <pre><code>$a = array(1, 2, 3, 17);    
  
  foreach($a as $value) {
    echo $new = $value;
  }
  
  echo $new; 
  
  ?&gt;
  </code></pre>