foreach grabing the last element of a object array - why 0 retrieves it?
<pre><code>foreach ($videoFeed as $key =&gt; $videoEntry)
{
  if ($key == 0) {
     $flashUrl = $videoEntry-&gt;getFlashPlayerUrl();
  }
}
</code></pre>

<p>The videosFeed contains the last videos of a given youtube feed.</p>

<p>If I upload a video I know that the last uploaded video will be the one that as the key 0.</p>

<p>The only reason for this is because, on the feed list, the first element is the last video, and that is defined on the youtube side right?</p>
