'zhong','g'=>'guo','age'=>108);echo http_build_query($str);*///输出:z=zhong&g=guo&age=108 //3.parse_url解析url字符串。/*$url="http://www.phpdl.com/index.php?site=PHP中国&school=DongLi#abc";print_r(parse_url($url));*///输出:Array ( [scheme] => http [host] => www.phpdl.com [path] => /index.php [query] => site=PHP中国&school=DongLi [fragment] => abc ) //4.urlencode编码url字符。/*$url="http://www.baidu.com";echo urlencode($url);*///输出:http%3A%2F%2Fwww.baidu.com //5.urldecode解码已编码的url字符串。/*$url="http%3A%2F%2Fwww.baidu.com";echo urldecode($url);*///输出:http://www.baidu.com //6.rawurlencode 按照 RFC 1738 对 URL 进行编码/*$str="http://www.baidu.com";echo rawurlencode($str);*///输出:http%3A%2F%2Fwww.baidu.com //7.rawurldecode 对已编码的 URL 字符串进行解码echo rawurldecode('http%3A%2F%2Fwww.baidu.com ');//输出:http://www.baidu.com ?>