src/ParseMenu.php
private static function array_get($array, $key, $default = null)
    {
        if (!is_array($array)) {
            return value($default);
        }
        if (is_null($key)) {
            return $array;
        }
        if (array_key_exists($key, $array)) {
            return $array[$key];
        }
        foreach (explode('.', $key) as $segment) {
            if (is_array($array) && array_key_exists($segment, $array)) {
                $array = $array[$segment];
            } else {
                return value($default);
            }
        }
        return $array;
    }
private static function array_get($array, $key, $default = null)
    {
        if (!is_array($array)) {
            return value($default);
        }
        if (is_null($key)) {
            return $array;
        }
        if (array_key_exists($key, $array)) {
            return $array[$key];
        }
        foreach (explode('.', $key) as $segment) {
            if (is_array($array) && array_key_exists($segment, $array)) {
                $array = $array[$segment];
            } else {
                return value($default);
            }
        }
        return $array;
    }
Get an item from an array using "dot" notation.

@param  string $key
@param  mixed $default
@return mixed