Welcome Guest, Not a member yet? Register   Sign In
img() with link?
#1

[eluser]jurlan[/eluser]
hi all.
I have the following piece of code:

Code:
<?php

$image_properties = array(array('src' => 'assets/images/blah.gif',
       'alt' => 'Blah',
       'width' => '67',
       'height' => '25',
       'title'  => 'Blah'));


foreach ($image_properties as $val)
{
echo(img($val));
}
?>

There will be 4 images in the array.
Is there any way I can add a link to each image that will be in the array?

Thanks in advance!


Messages In This Thread
img() with link? - by El Forum - 10-16-2012, 12:33 PM
img() with link? - by El Forum - 10-16-2012, 12:48 PM
img() with link? - by El Forum - 10-16-2012, 01:32 PM
img() with link? - by El Forum - 10-16-2012, 01:41 PM
img() with link? - by El Forum - 10-17-2012, 12:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB