里边的数值相加,用array_sum()不行,有最合适的办法吗
<code>[ { "number": "105" }, { "number": "105" }, { "number": "105" }, { "number": "105" } ]</code>
里边的数值相加,用array_sum()不行,有最合适的办法吗
<code>[ { "number": "105" }, { "number": "105" }, { "number": "105" }, { "number": "105" } ]</code>
<code>echo array_sum(array_column($your_array, 'number'));</code>