"; if ($currentLeft + $width > $totalWidth) { $currentTop += $height; $currentLeft = 0; } else { $currentLeft += $width; } } ?> echo "
"; if ($currentLeft + $width > $totalWidth) { $currentTop += $height; $currentLeft = 0; } else { $currentLeft += $width; } } ?>