I have a multidimensional array which looks like this:
Array ( [0] => Array ( [0] => Array (
I would recommend using the array_walk function with a callback that handles your specific requirements for addition and uniqueness.