Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 zf2 中创建安静的 Web 服务
在 zend 框架中 return new JsonModel(array( 'data' => $data, ));
对于 json 输出
但我希望输出应该在 xml 中。我该怎么办?