rawurlencode

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
URL-encode according to RFC 3986
<?php rawurlencode(string $string): string
<?php             '%25' => '%',

        ];



        return strtr(rawurlencode($url), $dont_encode);

    }