PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<rawurlencodeurlencode>
Last updated: Mon, 16 Jul 2012

urldecode

(PHP 3, PHP 4, PHP 5)

urldecode -- 解码已编码的 URL 字符串

描述

string urldecode ( string str )

解码给出的已编码字符串中的任何 %##。返回解码后的字符串。

例子 1. urldecode() example

<?php
$a
= explode('&', $QUERY_STRING);
$i = 0;
while (
$i < count($a)) {
  
$b = split('=', $a[$i]);
   echo
'Value for parameter ', htmlspecialchars(urldecode($b[0])),
        
' is ', htmlspecialchars(urldecode($b[1])), "<br />\n";
  
$i++;
}
?>

参见 urlencode()rawurlencode()rawurldecode()




<rawurlencodeurlencode>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST