title: How do i make the first element in the array active
body: <p>ok so i have this array and i need to loop through </p>
  
  <pre><code> &lt;?php foreach($classes as $class){ ?&gt;
  </code></pre>
  
  <p>the html needs to look like this</p>
  
  <pre><code>&lt;li class="active"&gt;&lt;span class="l"&gt;&lt;/span&gt;&lt;a href="#"&gt;Standard Class&lt;/a&gt;&lt;span class="r"&gt;&lt;/span&gt;&lt;/li&gt;
  &lt;li&gt;&lt;span class="l"&gt;&lt;/span&gt;&lt;a href="#"&gt;Business Class&lt;/a&gt;&lt;span class="r"&gt;&lt;/span&gt;&lt;/li&gt;
  &lt;li&gt;&lt;span class="l"&gt;&lt;/span&gt;&lt;a href="#"&gt;Premium&lt;/a&gt;&lt;span class="r"&gt;&lt;/span&gt;&lt;/li&gt;
  </code></pre>
  
  <p>see the first one is active ...how do i make the first on active</p>
  
  <p>the array data is </p>
  
  <pre><code>Array ( 
  [0] =&gt; Array ( 
     [class] =&gt; Standard )
  [1] =&gt; Array ( 
     [class] =&gt; Business ) 
  [2] =&gt; Array ( 
     [class] =&gt; Premium ) ) 
  </code></pre>