src/Helper/ArrayHelper.php
public static function arrayGet(
        array $array,
        ?string $key,
        $default = null
    ) {
        if (null === $key) {
            return $array;
        }

        if (isset($array[$key])) {
            return $array[$key];
        }

        foreach (explode('.', $key) as $segment) {
            if (!is_array($array) || !array_key_exists($segment, $array)) {
                return self::value($default);
            }
            $array = $array[$segment];
        }

        return $array;
    }
public static function arrayGet(
        array $array,
        ?string $key,
        $default = null
    ) {
        if (null === $key) {
            return $array;
        }

        if (isset($array[$key])) {
            return $array[$key];
        }

        foreach (explode('.', $key) as $segment) {
            if (!is_array($array) || !array_key_exists($segment, $array)) {
                return self::value($default);
            }
            $array = $array[$segment];
        }

        return $array;
    }
Get an item from an array using "dot" notation.

@param  mixed   $default

@return mixed