title: PHP equivalent to Python's enumerate()?
body: <p>In Python I can write:</p>
  
  <pre><code>for i, val in enumerate(lst):
      print i, val
  </code></pre>
  
  <p>The only way I know how to do this in PHP is:</p>
  
  <pre><code>for($i = 0; $i &lt; count(lst); $i++){
      echo "$i $val\n";
  }
  </code></pre>
  
  <p>Is there a cleaner way in PHP?</p>