如何从数组中删除重复项

时间:2014-09-06 19:59:03

标签: php arrays

如何从数组中删除重复项(数组unic by key)

从数组重复(数组unic by key)如何从数组中删除重复项(数组unic by key)

Array
(
    [0] => Array
        (
            [contact] => Array
                (
                    [0] => Array
                        (
                            [Server_User_id] => 2
                            [firstName] => dfdsf
                            [LastNamee] => fft
                            [mobileNo] => 919904449788
                        )

                    [1] => Array
                        (
                            [Server_User_id] => 2
                            [firstName] => nwalji
                            [LastNamee] => DoshiJi
                            [mobileNo] => 8141741153
                        )

                    [2] => Array
                        (
                            [Server_User_id] => 1
                            [firstName] => yawdddal
                            [LastNamee] => ddddddixit
                            [mobileNo] => 9907497444
                        )

                    [3] => Array
                        (
                            [Server_User_id] => 3
                            [firstName] => yawaljttttti
                            [LastNamee] => DixitrrrrrrrJi
                            [mobileNo] => 8141077773
                        )

                    [4] => Array
                        (
                            [Server_User_id] => 2
                            [firstName] => asdasd
                            [LastNamee] => asdasd
                            [mobileNo] => 91990749777
                        )

                    [5] => Array
                        (
                            [Server_User_id] => 1
                            [firstName] => qweqwe
                            [LastNamee] => wewewew
                            [mobileNo] => 919898989899
                        )

                    [6] => Array
                        (
                            [Server_User_id] => 2
                            [firstName] => vikash
                            [LastNamee] => kashiya
                            [mobileNo] => 919871234567
                        )

                    [7] => Array
                        (
                            [Server_User_id] => 1
                            [firstName] => anil
                            [LastNamee] => kumari
                            [mobileNo] => 919893098930
                        )

                    [8] => Array
                        (
                            [Server_User_id] => 6
                            [firstName] => nnalk
                            [LastNamee] => nntk
                            [mobileNo] => 919826012345
                        )

                    [9] => Array
                        (
                            [Server_User_id] => 2
                            [firstName] => yalll
                            [LastNamee] => dikmmmt
                            [mobileNo] => 919907499777
                        )

                )

        )

)

0 个答案:

没有答案