php中 xml json 数组 之间相互转换
1 数组转json
$result = array( 'status' =>$status, 'message'=>$message, 'data'=>$data, ); json_encode($result);