note 37659 deleted from reserved.variables by pollita
| From: | pollita@php.net | Date: | Sat, 22 Nov 2003 02:03:14 +0000 |
| Subject: | note 37659 deleted from reserved.variables by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-60799@lists.php.net to get a copy of this message | ||
Note Submitter:
----
there was a slight error in the previous function (if some mod could delete the previous post...
thanks)
function parseqs($querystring){
$pos = strpos($querystring, 'PHPSESSID');
if (!$pos === FALSE){
if($pos == 0){
return "";
}else{
if ($querystring[$pos-1] == '&'){
return substr($querystring, 0, $pos-1);
}else{
return substr($querystring, 0, $pos-5);
}
}
}
return $querystring;
}