php中 xml json 数组 之间相互转换
1 数组转json
$result = array( ‘status‘ =>$status, ‘message‘=>$message, ‘data‘=>$data, ); json_encode($result);
时间: 2024-11-09 05:08:45
php中 xml json 数组 之间相互转换
1 数组转json
$result = array( ‘status‘ =>$status, ‘message‘=>$message, ‘data‘=>$data, ); json_encode($result);