<?php if (!function_exists('nomor')) { function nomor($currentPage, $perPage) { if (is_null($currentPage)) { $nomor = 1; } else { $nomor = 1 + ($perPage * ($currentPage - 1)); } return $nomor; } } function remove_url_param($url, $remove) { parse_str(parse_url($url)['query'], $url_param); unset($url_param[$remove]); return current_url()."?".http_build_query($url_param); }