How to number things in PHP?
<p>UPDATE:</p>

<p>I know I can use <code>&lt;ol&gt;</code> directky in the output but I remember using something like:</p>

<p><code>&lt;?php echo $i++; ?&gt;</code> when I worked on a wordpress blog once. Every time I inserted that tag a number greater than the previous appeared so I basically did:</p>

<pre><code>&lt;?php echo $i++; ?&gt; Text
&lt;?php echo $i++; ?&gt; Text
&lt;?php echo $i++; ?&gt; Text
</code></pre>

<p>I'm a front end guy (HTML/CSS) so please excuse this basic question. I just need to know what code in PHP I can use to number some text.</p>

<p>Text</p>

<p>Text</p>

<p>Text</p>

<p>into:</p>

<ol>
<li><p>Text</p></li>
<li><p>Text</p></li>
<li><p>Text</p></li>
</ol>

<p>Kind of like what <code>&lt;ol&gt;</code> does in html but in PHP.</p>
