references:joomla.framework:environment:juri-setquerystringTable of Contents
setQueryString
Sets the query string. Syntaxvoid setQueryString ( $query )
ExamplesExample $uri = new JURI( 'http://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819' ); echo "Before: " . $uri->toString(); $uri->setQueryString( 'action=new&topic=2564' ); echo "After: " . $uri->toString(); might produce: Result Before: http://forum.joomla.org/index.php/topic,41464.msg227819.html#msg227819 After: http://forum.joomla.org/index.php/topic,41464.msg227819.html?action=new&topic=2564#msg227819 |


