Diff for phpPlatonLib/Platon/Platon.php between version 1.33 and 1.34
| version 1.33, 2005/11/07 23:21:17 |
version 1.34, 2005/11/25 17:23:06 |
|
|
| * @access public |
* @access public |
| */ |
*/ |
| |
|
| /* $Platon: phpPlatonLib/Platon/Platon.php,v 1.32 2005/11/07 22:02:29 nepto Exp $ */ |
/* $Platon: phpPlatonLib/Platon/Platon.php,v 1.33 2005/11/07 23:21:17 nepto Exp $ */ |
| |
|
| class Platon |
class Platon |
| { |
{ |
|
|
| } /* }}} */ |
} /* }}} */ |
| |
|
| /** |
/** |
| |
* Removes parameter with value from the query string |
| |
* |
| |
* @param string $query_string query string |
| |
* @param string $param parameter name |
| |
* @param char $sep separator (default: &) |
| |
* @return string modified query string |
| |
*/ |
| |
function query_string_remove_param($query_string, $param, $sep = '&') /* {{{ */ |
| |
{ |
| |
$regexp = $sep.$param.'=[^'.$sep.']*'; |
| |
$array = preg_split("/$regexp/", $sep.$query_string); |
| |
$string = join('', $array); |
| |
$string = preg_replace('/^&*/', '',$string); |
| |
return $string; |
| |
} /* }}} */ |
| |
|
| |
/** |
| * Returns passed path without scriptname; method also accepts array |
* Returns passed path without scriptname; method also accepts array |
| * returned from Platon::glue_url() method. |
* returned from Platon::glue_url() method. |
| * |
* |
Platon Group <platon@platon.org> http://platon.org/
|
|