how to increment div id with php for loop?
<p>i have this div, i would like to have mydiv1, mydiv2 and mydiv3, how is it possible ?</p>

<pre><code>&lt;?php for($i =1; $i &lt;3; $i++):?&gt;
    &lt;div id="mydiv&lt;?php $i?&gt;" style="float:left"&gt;
            &lt;?php endfor;?&gt;
</code></pre>
