时间:2021-07-01 10:21:17 帮助过:26人阅读
[
{
"number": "105"
},
{
"number": "105"
},
{
"number": "105"
},
{
"number": "105"
}
]
里边的数值相加,用array_sum()不行,有最合适的办法吗
[
{
"number": "105"
},
{
"number": "105"
},
{
"number": "105"
},
{
"number": "105"
}
]
echo array_sum(array_column($your_array, 'number'));