Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
URL-encode according to RFC 3986
<?php rawurlencode(string $string): string
<?php         $uri = strtr(rawurlencode($uri), $this->dontEncode);



        if (! $absolute) {

            $uri = preg_replace('#^(//|[^/?])+#', '', $uri);