title: I want to echo something only on the first time foreach runs
body: <p>I want to echo something only on the first time foreach() runs!
  let's say if I have an array $i</p>
  
  <pre><code>$i = array(............);
  </code></pre>
  
  <p>and I want to use it in foreach like...</p>
  
  <pre><code>foreach($i as $key =&gt; $value) {
    echo '&lt;h1&gt;'.$key.'&lt;/h1&gt;';
    echo '&lt;p&gt;'.$value.'&lt;/p&gt;';
  }
  </code></pre>
  
  <p>while this foreach runs the first time only i want to add <em>class="show"</em> to the h1 tag.
  How to do that?</p>