...

View Full Version : display an array of images using php



mrjameer
03-24-2007, 04:59 PM
hi,

how to display an array of images using php.iam storing the images in array as follows.but how can i print these images.
$arr1=array('back_test.jpg','horses.jpg');
thanks
mrjameer

jmitch18
03-24-2007, 05:28 PM
Try this:



foreach($arr1 as $key=>$value){
echo "<img src='".$value."' alt='".$value."'>";
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum