PHP - Printing out values of arrays inside arrays
<p>I have a system that inputs multiple images via a backend script ... i want to be able to echo out the images into a list on the frontend so i can manipulate them.</p>

<p>Im not exactly sure how i would do this using a loop.</p>

<p>In my PHP im viewing the contents of the array using the following:</p>

<pre><code>&lt;?php print_r($node-&gt;rotator['und']); ?&gt;
</code></pre>

<p>When it prints out, its giving me the following information</p>

<pre><code>Array (
    [0] =&gt; Array ( [fid] =&gt; 4 [alt] =&gt; [title] =&gt; [uid] =&gt; 1 [filename] =&gt; fredmanhhh.jpeg [uri] =&gt; public://fredmahjk.jpeg [filemime] =&gt; image/jpeg [filesize] =&gt; 108646 [status] =&gt; 1 [timestamp] =&gt; 1311781185 [rdf_mapping] =&gt; Array ( ) ) 
    [1] =&gt; Array ( [fid] =&gt; 6 [alt] =&gt; [title] =&gt; [uid] =&gt; 1 [filename] =&gt; 92_mr_t_snickers1.jpeg [uri] =&gt; public://92_mr_t_snickers1_1.jpeg [filemime] =&gt; image/jpeg [filesize] =&gt; 475757 [status] =&gt; 1 [timestamp] =&gt; 1311785879 [rdf_mapping] =&gt; Array ( ) ) 
)
</code></pre>

<p>What i need to do with a loop is extract the [filename] and add that inside the list tag for each image thats been uploaded.</p>

<p>If anyone could help me, that would be grand.</p>

<p>Cheers</p>
