= count($images)) { $nextImg = 0; } $txt = ""; foreach ($images as $im) { $txt .= $im["image"]; } $content = Imager::getPageLayout($images,$prevImg,$imgno,$nextImg); //$content = $txt; //$content = "