How do I add different class for my ordered lists
<p>I want add <code>left, center &amp; right</code> class to my ordered lists while loop.</p>

<p>Code</p>

<pre><code> &lt;?php while ($fetch) { ?&gt;
    &lt;li&gt;haha&lt;/li&gt;
  &lt;?php } ?&gt;
</code></pre>

<p>Results should be</p>

<pre><code>&lt;ul&gt;
  &lt;li class="left"&gt;haha&lt;/li&gt;
  &lt;li class="center"&gt;haha&lt;/li&gt;
  &lt;li class="right"&gt;haha&lt;/li&gt;
  &lt;li class="left"&gt;haha&lt;/li&gt;
  &lt;li class="center"&gt;haha&lt;/li&gt;
  &lt;li class="right"&gt;haha&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>Let me know</p>
