note 37629 deleted from reserved.variables by pollita

From: Date: Sat, 22 Nov 2003 02:02:52 +0000
Subject: note 37629 deleted from reserved.variables by pollita
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-60798@lists.php.net to get a copy of this message
Note Submitter: ---- here a little function to obtain a "clean" querystring without the PHPSESSID, useful when using www.domain.tld/folder/?value function parseqs($querystring){ $pos = strpos($querystring, 'PHPSESSID'); if (!$pos === FALSE){ if($pos == 0){ return ""; }else{ if ($querystring[$pos-1] == '&'){ return substr($querystring, 0, $pos); }else{ return substr($querystring, 0, $pos-5); } } } return $querystring; }

« previous php.notes (#60798) next »