How can I optimize this without using loops?
<p>I am new on programming. Can anybody please tell me how can i write this code short n sweet without using loops in php. </p>

<p></p>

<pre><code>&lt;li&gt;&lt;a href="#" class="active_paginate" onclick="paginate_main('ALL','10','pagination');"&gt;ALL&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('A','10','pagination');"&gt;A&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('B','10','pagination');"&gt;B&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('C','10','pagination');"&gt;C&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('D','10','pagination');"&gt;D&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('E','10','pagination');"&gt;E&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('F','10','pagination');"&gt;F&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('G','10','pagination');"&gt;G&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('H','10','pagination');"&gt;H&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('I','10','pagination');"&gt;I&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('J','10','pagination');"&gt;J&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('K','10','pagination');"&gt;K&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('L','10','pagination');"&gt;L&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('M','10','pagination');"&gt;M&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('N','10','pagination');"&gt;N&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('O','10','pagination');"&gt;O&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('P','10','pagination');"&gt;P&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('Q','10','pagination');"&gt;Q&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('R','10','pagination');"&gt;R&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('S','10','pagination');"&gt;S&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('T','10','pagination');"&gt;T&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('U','10','pagination');"&gt;U&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('V','10','pagination');"&gt;V&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('W','10','pagination');"&gt;W&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('X','10','pagination');"&gt;X&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('Y','10','pagination');"&gt;Y&lt;/a&gt;&lt;/li&gt;
&lt;li &gt;&lt;a href="#" onclick="paginate_main('Z','10','pagination');"&gt;Z&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
