array_merge 键名重复 以后者为主

        $a = ['a'   =>  'aaa','c'   =>  'aaaaa'];
        $b = ['b'   =>  'bbb','c'   =>  'bbbbb'];

        dump(array_merge($b,$a));


posted @ 2021-11-23 16:27  盘思动  阅读(73)  评论(0编辑  收藏  举报