PHP创建 JSON 数据创建 JSON 数据 使用下面的 PHP 片段可以创建 JSON 数据,可以方便你创建移动应用的 Web 服务 $json_data = array ('id'=>1,'name'=>"Mohit"); echo json_encode($json_data);