for loop in php - list ul li tags
<p>I need to find out how to list ul navigation, maybe in a <code>for</code> loop? 
Each ul have different classes (there is max 3 ul)</p>

<p>first ul class named "first", "center", and "last" </p>

<p>I need some samples to get started. </p>

<p>like: </p>

<pre><code>                for($x = 1; $x &lt; 3; $x++){

                    //html code 
                }



         &lt;ul class="first"&gt;
            &lt;li class="first-child"&gt;
                &lt;ul&gt;
                    &lt;li&gt;
                        &lt;div class="image"&gt;
                            // image goes here
                        &lt;/div&gt;
                        &lt;div class="info"&gt;
                            // data
                        &lt;/div&gt;
                    &lt;/li&gt;
                &lt;/ul&gt;
            &lt;/li&gt;
        &lt;/ul&gt;

    // next loop would look like: 

     &lt;ul class="center"&gt;
        &lt;li class="first-child"&gt;
            &lt;ul&gt;
                &lt;li&gt;
                    &lt;div class="image"&gt;
                        // image goes here
                    &lt;/div&gt;
                    &lt;div class="info"&gt;
                        // data
                    &lt;/div&gt;
                &lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt; 

// and last

 &lt;ul class="last"&gt;
        &lt;li class="first-child"&gt;
            &lt;ul&gt;
                &lt;li&gt;
                    &lt;div class="image"&gt;
                        // image goes here
                    &lt;/div&gt;
                    &lt;div class="info"&gt;
                        // data
                    &lt;/div&gt;
                &lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt; 
</code></pre>
