$paths = explode('/', trim($_SERVER['PATH_INFO'], '/'));
$mark = count($paths) > 2 ? end($paths) : null;
$paths = explode('/', trim($_SERVER['PATH_INFO'], '/'));
$mark = count($paths) > 2 ? end($paths) : null;
转载于:https://my.oschina.net/u/4159874/blog/3071028