references:joomla.framework:environment:juri-setvarsetVar
Adds a query variable and value, replacing the value if it already exists and returning the old value. Syntaxstring setVar ( $name, $value )
ExamplesExample $uri = new JURI( 'http://forum.joomla.org/index.php/topic,41464.msg227819.html?action=new' ); echo "Old Value: " . $uri->setVar( 'action', 'delete' ); $vars = $uri->getVars(); echo "New Value: " . $vars[ 'action' ]; might produce: Result Old Value: new New Value: delete |


