2017年3月17日

根据经纬度查询当前地点,百度google接口

摘要: <?php /** 百度 API 根据经纬度查询当前地点 **/ header("Content-Type: text/html; charset=UTF-8"); function getBaiduAPIAddress($lat,$lng){ //纬度,经度 $location = $lat.', 阅读全文

posted @ 2017-03-17 10:32 ds516 阅读(499) 评论(0) 推荐(0)

取数组中随机元素

摘要: $array=array("red","green","blue","yellow","brown"); $random_keys=array_rand($array,2); echo $array[$random_keys[0]]; 阅读全文

posted @ 2017-03-17 10:31 ds516 阅读(336) 评论(0) 推荐(0)

导航