【发布时间】:2020-12-01 01:20:03
【问题描述】:
我在邮递员中通过 API 传递以下数据。
我想从 Items 数组中的集合中访问这些值。
{
"user":"abc",
"supplier":"xyz",
"pdate":"1",
"items":[
{
"product":"Apple",
"qty":"1",
"rate":"40",
"amount":"40"
},
{
"product":"Banana",
"qty":"6",
"rate":"4",
"amount":"24"
}
]
}
【问题讨论】:
-
尝试 toArray() 函数
标签: php arrays laravel collections