Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Parse a URL and return its components
<?php parse_url(string $url, int $component = -1): int|string|array|null|false
<?php     public function getFromRefererUrlQueryString($url, $key, $default = null)

    {

        $parsedUrl = parse_url($url);

        $query = [];



        if (isset($parsedUrl['query'])) {