Can anyone improve my multidimensional array more distinctive?
Shortest solution I can come up with:

function array_unique_recursive ($array) {

    // First loop the array and call self on any sub arrays
    // Note that $value is referenced
    foreach ($array as &amp;$value) {
        if (is_array($value)) {
            $value = array_unique_recursive($value);
        }
    }

    // Now unique this level
    return array_unique($array, SORT_REGULAR);

}

print_r(array_unique_recursive($echo));


See it working