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.
我正在用 PHP 构建一个 API,当用户使用 api 进行 POST 或 PUT 时,他们将以 JSON 格式传递一些数据。当请求到达预期的脚本时,我使用什么 php 函数来访问发送的数据?
谢谢!
有 json_decode 函数将字符串输入转换为 json 数组或对象...在这里您可以阅读文档。