rawurldecode - Decode URL encoded string
string rawurldecode ( string $str )
$str - The URL to be decoded.
Returns the decoded URL as a string in which the sequences with percent (%) signs followed by two hex digits have been replaced with literal characters.
<?php
$str = 'raw%20url%20decode';
echo "http://example.com/?param=" . rawurldecode( $str );
?>
http://example.com/?param=raw url encode
github.com/urldecoder/examples/blob/main/rawurldecode.php