合并前的数组a:array(size=3)0=>array(size=2)'id'=>string'113'(length=3)'email'=>string'yintx_1292342352@163.com'(length=24)1=>array(size=2)'id'=>string'111'(length=3)'email'=>string'yintx_1293456456@163.com'(length=24)2=>array(size=2)'id'=>string'109'(length=3)'email'=>string'yintx_129@99999.com'(length=19)合并前的数组b:array(size=2)0=>array(size=2)'user_id'=>string'113'(length=2)'count'=>string'1'(length=1)1=>array(size=2)'user_id'=>string'109'(length=2)'count'=>string'8'(length=1)合并后的数组(合并条件,a的id==b的user_id时合并):array(size=3)0=>array(size=3)'id'=>string'113'(length=3)'email'=>string'yintx_1292342352@163.com'(length=24)'count'=>string'1'(length=1)1=>array(size=3)'id'=>string'111'(length=3)'email'=>string'yintx_1293456456@163.com'(length=24)'count'=>string'0'(length=1)2=>array(size=3)'id'=>string'109'(length=3)'email'=>string'yintx_129@99999.com'(length=19)'count'=>string'8'(length=1)
宝慕林4294392
相关分类