php封装json通信接口详解及实例 php创建JSON数据详解:<?php//创建一个字符数组$arr=array('id'=>1,'name'=>'david');echojson_enc php封装json通信接口