PHP 使用 http_build_query() 构建查询参数
程序员文章站
2022-06-16 21:51:38
...
跳至
4, 'search' => 'this & that'); $qs = http_build_query($vars); $url = 'http://www.oschina.net/search.php?' . $qs; $page = file_get_contents($url); ?>