2015-03-11, 23:51:02
nono use foreach much easier to write and read, and faster then counting each iteration ( and your missing quotes )
and if you need $i for index or something
PHP Code:
$images = explode('||', get_special_field_image('image'));
foreach($images as $image){
echo '<img src="'.$image.'">';
}
and if you need $i for index or something
PHP Code:
foreach($images as $key=>$image){
// echo $key; // zero based index
echo $key.'<img src="'.$image.'">';
}