$key=>$value) { if ($type > 1) return; echo "<div class="next-page-button-wrapper">"; if ($page != 0) { print_next_page_button("<<", 0, $query, $type); print_next_page_button("<", $page - 10, $query, $type); print_next_page_button("<", $page - 10, $query, $type); echo "</div>"; }