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

Github

See also: