摘要: 关键函数:json_decode(str,true)解析json json_encode(array()),转换成json实例如下:(带读写文件的例子)unlink("a.html");//删除原有文件 $fp=fopen("a.html","a"); $fw=fwrite($fp,json_encode($guanggao_list)); //将guanggao_list数组集成json后存入文件a.html fclose($fp); $fp=fopen("a.html","r"); $fw= 阅读全文
posted @ 2013-03-01 14:58 芭菲雨 阅读(344) 评论(0) 推荐(0) 编辑