$name "; foreach($limits as $l) { $q1 = str_replace(urlencode("###"), " LIMIT 0,$l;" . urlencode("###"), $q); echo "" . minus1_to_all($l) . " "; } echo ""; } ?>