《PHP》『URL函式庫』urldecode 譯解URL編碼字串
urldecode --- 譯解URL編碼字串
語法 : string urldecode (string str)
說明 :
譯解給予的字串中任何的%##編碼,傳回譯解後的字串。
Example :
<?php
$a = split ('&', $querystring);
$i = 0;
while ($i < count ($a)) {
$b = split ('=', $a [$i]);
echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])),
' is ', htmlspecialchars (urldecode ($b [1])), "<BR>";
$i++;
}
?>
參考 : urlencode( ) rawurlencode( ) rawurldecode( )