欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php隨機(jī)獲取金山詞霸每日一句的方法

 更新時(shí)間:2015年07月09日 17:44:26   作者:羅洋鵬  
這篇文章主要介紹了php隨機(jī)獲取金山詞霸每日一句的方法,實(shí)例分析了php通過金山詞霸相關(guān)接口調(diào)用每日一句的實(shí)現(xiàn)技巧,需要的朋友可以參考下

本文實(shí)例講述了php隨機(jī)獲取金山詞霸每日一句的方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:

header('Content-Type:text/html; charset=utf-8');
$nowyear=date("Y");
$nowmouth = date('m');
$nowday = date('d');
$date = mt_rand("2012",$nowyear)."-".mt_rand("1",$nowmouth)."-".mt_rand("1",$nowday);
$content=file_get_contents('http://open.iciba.com/dsapi/?date='.$date);
$arr=json_decode($content,true);
print_r($arr);

希望本文所述對(duì)大家的php程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論