Trying to load an php array into an echo that prints an image
<p>Hi I am trying to get images to load into a page using the file names from an array,</p>

<p>This is what I have so far</p>

<pre><code>&lt;?php
$i=0;
$img=array("1.png","2.png","3.png","4.png");
while ($i&lt;count($img))
{
echo "&lt;img class='loadin' alt='imgg' src=" . "'http://www/images/" . $img[i] . "'" . "/" . "&gt;" . "&lt;br/&gt;";
$i++;
}
?&gt;
</code></pre>

<p>It seems to ignore the file name and just enters:</p>

<pre><code>http://www/images/
</code></pre>

<p>as the source and ignores the file name from the array</p>

<p>Any Help would be great Thanks</p>

<p>Mikey</p>
