
// 把uri_string拆成段(同时对各段进行过滤),保存到URI::$segments中。
function explode_segments()
{
foreach (explode('/', preg_replace("|/*(.+?)/*$|", "\\1", $this->uri_string)) as $val) {
$val = trim($val);
if ($val != '') {
$this->segments[] = $val;
}
}
}



