json数据如何用php读取并写入到mysql内

2025-04-06 23:10:09
推荐回答(2个)
回答1:

对象json
获取对象下标返回json $json=$obj->GetFullStockJSONResult

返回数组 $arr =json_decode($json);
把数组存入数据库

回答2:

PHP 中有个json_decode这个函数