title: php foreach loop access value outside loop
body: <p>Is it possible to access a value outside a php foreach loop?
  For example:</p>
  
  <pre><code>&lt;?php
      $array=array('a','b','c');
      foreach ($array as $value) {
  }
      echo $value;
  //$value is c.
  ?&gt;
  </code></pre>
  
  <p>I need to access $value outside the foreach loop. 
  Is this a limitation of php?
  Thanks,
  Ravi</p>