Örnekte bu:
$key = 'page';
$url = 'https://www.codexworld.com/?type=product&page=5';
// Remove specific parameter from query string
$filteredURL = preg_replace('~(\?|&)'.$key.'=[^&]*~', '$1', $url);
$key = 'page';
$url = 'https://www.codexworld.com/?type=product&page=5';
// Remove specific parameter from query string
$filteredURL = preg_replace('~(\?|&)'.$key.'=[^&]*~', '$1', $url);