Function replace_uri_params
Given a URL (presumably the current one) and a parameter, replace the value of parameter, extending the URL as necessary if the parameter is not already there.
Package: awl\Utilities
Copyright: Catalyst IT Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU LGPL version 3 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at AWLUtilities.php
Copyright: Catalyst IT Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU LGPL version 3 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at AWLUtilities.php
string |
$uri |
The URI we will be replacing parameters in. |
array |
$replacements |
An array of replacement pairs array( "replace_this" => "with this" ) |
string
|
The URI with the replacements done. |