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