如果遇到二维数组 想取某个字段的和

array_sum(array_column($attr, '字段'));

posted @ 2016-09-02 11:26  赵雪如  阅读(1411)  评论(0)    收藏  举报