主页

thinkphp5 think\response\json Object 转数组

风轻花落早   IP属地: 青海
0 点赞 0阅读 4559
$result为json对象数据集

可使用getContent()方法输出数组格式:

print_r(json_decode($result->getContent(),true));或json_decode($result,true)

© 著作权归作者所有,转载或内容合作请联系作者