| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Environment |
JURI |
delVar |
delVar() |
Never | Work in Progress |
Removes an item from the query string variables if it exists.
void delVar ( $name )
| $name | string | is a string containing the name of variable to remove. |
Example
$uri = new JURI( 'http://www.joomla.org?action=help' ); echo "Before: " . $uri->toString(); $uri->delVar( 'action' ); echo "After: " . $uri->toString();
might produce:
Result
Before: http://www.joomla.org?action=help After: http://www.joomla.org