Url Encode Url Decoder
More Tools
Other tools: Base64 Decode | Base64 Image Decoder | Base64 Encode | 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