I have an single multi-dimensional array, and want to compare its own value array's are duplicate or not.
Let the array is like :
$userdb = Array
(
    (0) => Array
        (
            'college' => 'college1',
            'name' => 'Anil Kumar',
            'city' => 'bikaner'
        ),
    (1) => Array
        (
            'college' => 'college2',
            'name' => 'Tanu Shree',
            'city' => 'bikaner'
        ),
    (2) => Array
        (
            'college' => 'college1',
            'name' => 'Anil Kumar',
            'city' => 'bikaner'
        )
);
Here two indexes are same, index 0 and 2. How can I compare the whole sub-array of this multi-dimensional array for my single array $userdb. I want to compare whole index's array not only fields.
