public function parseQueryParams(string $url): array
    {
        return tap([], function (&$query) use ($url) {
            parse_str(parse_url($url, PHP_URL_QUERY) ?? '', $query);
        });
    }
public function parseQueryParams(string $url): array
    {
        return tap([], function (&$query) use ($url) {
            parse_str(parse_url($url, PHP_URL_QUERY) ?? '', $query);
        });
    }
public function parseQueryParams ( string $ url ) : array { return tap ( [ ] , function ( & $ query ) use ( $ url ) { parse_str ( parse_url ( $ url , PHP_URL_QUERY ) ?? '' , $ query ) ; } ) ; }
Parse the given URL and return its query.

@param string $url

@return array
Parse the given URL and return its query .