如何用php调用外部接口json数据

2025-05-14 00:04:41
推荐回答(1个)
回答1:

file_get_contents或者curl都可以
接收到数据后,可以使用php函数json_decode()把json转换成数组或对象格式