里边的数值相加,用array_sum()不行,有最合适的办法吗
[ { "number": "105" }, { "number": "105" }, { "number": "105" }, { "number": "105" } ]
闭关修行中......
echo array_sum(array_column($your_array, 'number'));
闭关修行中......