Url Encoder Url Decoder Base64 Decode Base64 Encode CSS Beautifier Base64 Image Decoder Base64 Image Encoder

PHP urldecode()

urldecode - Decodes URL encoded string

Function

string urldecode ( string $str )

Parameters

$str - The url string to be decoded

Return value

Returns the decoded string. Plus symbols (+) are decoded to a space character.

Example
<?php
        $str = 'url+decode';
        echo "http://example.com/?param=" . urldecode( $str );
?>
Output
http://example.com/?param=url encode
See also:
PHP urlencode