note 51016 deleted from function.preg-replace by didou

From: Date: Sun, 23 Apr 2006 22:52:57 +0000
Subject: note 51016 deleted from function.preg-replace by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109234@lists.php.net to get a copy of this message
Note Submitter: naaina at gmail dot com ---- If you want to remove a parameter from an URL, use this function: <?php function url_remove_parameter($pURL, $pParameter){ return preg_replace("/(&|\?)" . $pParameter . "=(.+?)(&|$)/", "\\1", $pURL); } ?>

« previous php.notes (#109234) next »