src/Router/UrlParsing.php
protected function splitUrl($url)
    {
        $path = parse_url(trim($url, '/'), PHP_URL_PATH);
        return $path ? explode('/', $path) : array();
    }
protected function splitUrl($url)
    {
        $path = parse_url(trim($url, '/'), PHP_URL_PATH);
        return $path ? explode('/', $path) : array();
    }
protected function splitUrl ( $ url ) { $ path = parse_url ( trim ( $ url , '/' ) , PHP_URL_PATH ) ; return $ path ? explode ( '/' , $ path ) : array ( ) ; }
Get parts of a URL path

@param string $url
@return array
Get parts of a URL path