/ Published in: PHP
Current URL http://www.example.com/page.php?p=5&show=list&style=2 and after
$url = modify_url(array('p' => 4, 'show' => 'column'));
URL will become http://www.example.com/page.php?p=4&show=column&style=2
$url = modify_url(array('p' => 4, 'show' => 'column'));
URL will become http://www.example.com/page.php?p=4&show=column&style=2
URL: http://www.phpsnippets.info/easily-modify-url-parameters