Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Parses the string into variables
<?php parse_str(string $string, array &$result): void
<?php         $args = array();

        \parse_str(isset($parts['query']) ? $parts['query'] : '', $args);

        if ($host !== $ip && !isset($args['hostname'])) {

            $uri .= (isset($parts['query']) ? '&' : '?') . 'hostname=' . \rawurlencode($host);

        }
<?php         $args = array();

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

            \parse_str($parts['query'], $args);

        }