Remove duplicate keys from Multidimensional Array
问题 I have a rather large array that contains data for all of the forums on a message board, unfortunately I am running into an issue where I am having repeat entries for some keys. The array is ordered in an hierarchy by parents, which is why it gets deep at some points. Array ( [0] => Array ( [cat_data] => Array() [forum_data] => Array ( [2] => Array ( [subforums] => Array ( [6] => Array ( [subforums] => Array ( [15] => Array() [16] => Array() ) ) [7] => Array() [15] => Array() [16] => Array()