PHP: loop trought array and create li list with array elements - array in array
<p>I have an an array with objects:</p>

<pre><code>Array ( [0] =&gt; 479,1,sometext [1] =&gt; 474,2,again text [2] =&gt; 472,3,and text ) 
</code></pre>

<p>The objects in array can be unlimited, but each object consists of 3 parts delimited by comma .</p>

<p>The result should be (in my example)- CORRECTED secondly</p>

<pre><code>&lt;li&gt;
&lt;span class="somecrap"&gt;array[0][0]&lt;/span&gt;
&lt;input type="text" class="secondcrap" value="array[0][1]"/&gt;
&lt;textarea class="3crap"&gt;array[0][2]&lt;/textarea&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;span class="somecrap"&gt;array[1][0]&lt;/span&gt;
&lt;input type="text" class="secondcrap" value="array[1][1]"/&gt;
&lt;textarea class="3crap"&gt;array[1][2]&lt;/textarea&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;span class="somecrap"&gt;array[2][0]&lt;/span&gt;
&lt;input type="text" class="secondcrap" value="array[2][1]"/&gt;
&lt;textarea class="3crap"&gt;array[2][2]&lt;/textarea&gt;
&lt;/li&gt;
</code></pre>

<p>etc.... depending of the count of the array objects</p>

<p>How would you accomplish this?</p>
