龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

PHP 使用 http_build_query() 构建查询参数

时间:2014-07-22 14:52来源: 作者: 点击:
分享到:
<无详细内容>
<?php
$vars = array('page' => 4, 'search' => 'this & that');
$qs = http_build_query($vars);
$url = 'http://www.oschina.net/search.php?' . $qs;
$page = file_get_contents($url);
?>
精彩图集

赞助商链接