PHP Array - How to loop through an array
<p>My array is as follows:</p>

<pre><code>Array ( [questions] =&gt; q1 [qnum] =&gt; 1 [qtext] =&gt; I love crisps [page] =&gt; 1 )
Array ( [questions] =&gt; q2 [qnum] =&gt; 2 [qtext] =&gt; I love chocolate [page] =&gt; 1 )
</code></pre>

<p>All I would like to do is print the contents of the array in a loop, so it looks something like:</p>

<pre><code>q1 1 I love crisps
q2 2 I love chocolate
</code></pre>

<p>If anyone could supply the PHP and HTML code, that would be great, thanks.</p>

<p>This is a multi-dimensional array - I should have stated that.  In addition, I want to be able to access each element of the array row, for example.  I also want to just access the [qtext] element on its own.</p>

<p>Is this possible?</p>

<p>Homer.</p>
