public static function removeKeysFromMultiArray(&$array, $keys)
    {
        foreach ($array as $key => &$value) {
            if (is_array($value)) {
                self::traverseArray($value, $keys);
            } else {
                if (in_array($key, $keys) || '' == $value) {
                    unset($array[$key]);
                }
            }
        }

        return $array;
    }
public static function removeKeysFromMultiArray(&$array, $keys)
    {
        foreach ($array as $key => &$value) {
            if (is_array($value)) {
                self::traverseArray($value, $keys);
            } else {
                if (in_array($key, $keys) || '' == $value) {
                    unset($array[$key]);
                }
            }
        }

        return $array;
    }
public static function removeKeysFromMultiArray ( & $ array , $ keys ) { foreach ( $ array as $ key => & $ value ) { if ( is_array ( $ value ) ) { self :: traverseArray ( $ value , $ keys ) ; } else { if ( in_array ( $ key , $ keys ) || '' == $ value ) { unset ( $ array [ $ key ] ) ; } } } return $ array ; }
Traverse an array unsetting keys

@param array $array array to traverse
@param array $keys keys to remove
@return array
Traverse an array unsetting keys