How can I tell PHP to dump exceptions as raw text instead of HTML?

后端 未结 3 577
陌清茗
陌清茗 2020-12-11 03:38

When I\'m developing my REST API in PHP I\'m working with application/json output, so when I get errors while testing in the browser they look like this:

<
3条回答
提交回复
热议问题