title: how can echo item in php foreach only at First item
body: <p>I have an array $result and I want to echo $image for the first item only. My code this is:</p>
  
  <pre><code>&lt;?php
  foreach ($result as $item)
  {
  $image = $item-&gt;image;   
  $id = $item-&gt;id;
  $cat = $item-&gt;catid;
  }
  ?&gt;
  </code></pre>
  
  <p>i want echo $image in first item and don't echo it Second, or third, etc item</p>