array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.rawurldecode.php', 1 => 'rawurldecode', ), 'up' => array ( 0 => 'ref.url.php', 1 => 'URL 函数', ), 'prev' => array ( 0 => 'function.parse-url.php', 1 => 'parse_url', ), 'next' => array ( 0 => 'function.rawurlencode.php', 1 => 'rawurlencode', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/url/functions/rawurldecode.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
rawurldecode — 对已编码的 URL 字符串进行解码
string
要解码的 URL。
返回解码后的 URL 字符串。
示例 #1 rawurldecode() 示例
<?php
echo rawurldecode('foo%20bar%40baz'); // foo bar@baz
?>
注意:
rawurldecode() 不会把加号('+')解码为空格,而 urldecode() 可以。