摘要:
array_key_exists()方法用于检查键名是否存在数组中。 "XC90","text"=>"X5"); if (array_key_exists("name",$a)) { echo "键存在!"; } else { echo "键不存在!"; } ?> 阅读全文
posted @ 2018-02-23 13:54
Tane
阅读(145)
评论(0)
推荐(0)
摘要:
http_build_query 字符串拼接 产生一个urlencode之后的请求字符串。 1.将数组转化成url问号(?)后的字符串 2.http_build_query() 添加数字下标 3.http_build_query() 使用复杂的数组 4.http_build_query()使用对象 阅读全文
posted @ 2018-02-23 11:02
Tane
阅读(539)
评论(0)
推荐(0)
摘要:
file_get_contents版本: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 <?php /** * 发送post请求 * @param string $url 请求地址 * @param array $post_d 阅读全文
posted @ 2018-02-23 09:53
Tane
阅读(271)
评论(0)
推荐(0)

浙公网安备 33010602011771号