protected function URL_parse($url = null) { $qs = $_SERVER['PHP_SELF']; $arr = explode('/', $qs); $arr = array_rid($arr, $ele = ''); unset($arr[1]); $arr = array_values($arr); return $arr; }
/** * 解析当前的url链接 * * @return mixed */ protected static function URL_parse() { $php_self = $_SERVER['PHP_SELF']; $arr = explode('/', $php_self); $arr = array_rid($arr, $ele = ''); unset($arr[1]); $arr = array_values($arr); return $arr; }