Heim >Backend-Entwicklung >PHP-Tutorial > urlencode转义字符串的有关问题
urlencode转义字符串的问题
a.php:
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $str = urlencode('张三'); echo "<a href="b.php?name=%7B%24str%7D">查看</a>";
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $name = $_GET['name']; echo $name;