src/Helper/Arr.php
public static function unsetKey(array &$array, $namespace, $separator = '.')
    {
        if (!is_string($namespace)) {
            return $array;
        }

        $keys = explode($separator, $namespace);

        while (($count = count($keys)) > 0 and !is_null($array)) {
            $key = array_shift($keys);
            if (isset($array[$key])) {
                if ($count < 2) {
                    unset($array[$key]);
                } else {
                    $array =& $array[$key];
                }
            }
        }
    }
public static function unsetKey(array &$array, $namespace, $separator = '.')
    {
        if (!is_string($namespace)) {
            return $array;
        }

        $keys = explode($separator, $namespace);

        while (($count = count($keys)) > 0 and !is_null($array)) {
            $key = array_shift($keys);
            if (isset($array[$key])) {
                if ($count < 2) {
                    unset($array[$key]);
                } else {
                    $array =& $array[$key];
                }
            }
        }
    }
public static function unsetKey ( array & $ array , $ namespace , $ separator = '.' ) { if ( ! is_string ( $ namespace ) ) { return $ array ; } $ keys = explode ( $ separator , $ namespace ) ; while ( ( $ count = count ( $ keys ) ) > 0 and ! is_null ( $ array ) ) { $ key = array_shift ( $ keys ) ; if ( isset ( $ array [ $ key ] ) ) { if ( $ count < 2 ) { unset ( $ array [ $ key ] ) ; } else { $ array = & $ array [ $ key ] ; } } } }
Unsets a value from a multidimensional array

@param array $array
@param string $namespace
@param string $separator

@return void
Unsets a value from a multidimensional array