Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Decodes URL-encoded string
<?php urldecode(string $string): string
<?php             '#' => '-',

        ];



        $str = Stringy::create(urldecode($string))->toAscii();



        foreach ($replacements as $from => $to) {

            $str = $str->replace($from, $to);
<?php     public function urldecode($value)

    {

        return urldecode($value);

    }