public static function getRequestPath()
    {
        if (empty($_SERVER['REQUEST_URI'])) {
            return false;
        }

        $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

        return empty($path) ? $path : urldecode($path);
    }
public static function getRequestPath()
    {
        if (empty($_SERVER['REQUEST_URI'])) {
            return false;
        }

        $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

        return empty($path) ? $path : urldecode($path);
    }
public static function getRequestPath ( ) { if ( empty ( $ _SERVER [ 'REQUEST_URI' ] ) ) { return false ; } $ path = parse_url ( $ _SERVER [ 'REQUEST_URI' ] , PHP_URL_PATH ) ; return empty ( $ path ) ? $ path : urldecode ( $ path ) ; }
Returns the path of the request uri

@return string|false
Returns the path of the request uri