Table of Contents

delVar

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Environment Class JURI Method delVar Reference delVar() Never Work in Progress

Removes an item from the query string variables if it exists.

Syntax

void delVar ( $name )

$name string is a string containing the name of variable to remove.

Examples

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