How to return results with an API
This question already has an answer here:
Yes. You may also want to send headers what sort of data you're returning (for example, application/json Content-Type) using header function (before echo ing anything).
下一篇: 如何使用API返回结果
