Attempts to pull value from array using dot notation.

@param string $path
@param string $default

@return mixed
482812
protected function getResponseData($path, $default = null)
    {
        $array = $this->response;

        if (!empty($path)) {
            $keys = explode('.', $path);

            foreach ($keys as $key) {
                if (isset($array[$key])) {
                    $array = $array[$key];
                } else {
                    return $default;
                }
            }
        }

        return $array;
    }
1077302
public function get($key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->array;
        }

        if (false === strpos($key, $this->separator)) {
            return $this->array[$key] ?? $this->defaultValue($key, $default);
        }

        $keyArray = explode($this->separator, $key);
        $tmp      = $this->array;
        foreach ($keyArray as $k) {
            if (isset($tmp[$k])) {
                $tmp = $tmp[$k];
            } else {
                $tmp = $this->defaultValue($key, $default);
                break;
            }
        }
        return $tmp;
    }
567891
public function get(string $path, $default = null)
    {
        if ($this->mode === self::MODE_FOLDER) {
            $nodes = Str::toArray($path, $this->separator);
            $name = \array_shift($nodes);// config file name

            // if config file not load. load it.
            if (!isset($this->data[$name])) {
                $file = $this->folderPath . "/{$name}.{$this->format}";

                if (!is_file($file)) {
                    throw new \InvalidArgumentException("The want get config file not exist, Name: $name, File: $file");
                }

                $this->data[$name] = self::read($file, $this->format);
            }
        }

        return parent::get($path, $default);
    }
515343
public function get( $name, $default = null )
	{
		$parts = explode( '/', trim( $name, '/' ) );

		if( ( $value = $this->_get( $this->_config, $parts ) ) !== null ) {
			return $value;
		}

		foreach( $this->_paths as $fspath ) {
			$this->_config = $this->_load( $this->_config, $fspath, $parts );
		}

		if( ( $value = $this->_get( $this->_config, $parts ) ) !== null ) {
			return $value;
		}

		return $default;
	}
988778
public static function getByPath($subject, array $path, $default = null)
    {
        $ptr =& $subject;
        foreach ($path as $key) {
            if (is_object($ptr) && isset($ptr->$key)) {
                $ptr =& $ptr->$key;
            } elseif (is_array($ptr) && isset($ptr[$key])) {
                $ptr =& $ptr[$key];
            } else {
                return $default;
            }
        }
        return $ptr;
    }
549591
public static function array_get($arr, $path, $default=null) {
		if(!is_array($path))
			$path = [$path];
		foreach($path as $key) {
			if(!isset($arr[$key]))
				return $default;
			else
				$arr = $arr[$key];
		}
		return $arr;
	}
513101
public static function getValueByPath($path, array $array, $default = null, $operator = '/')
    {
        //handle indexes containing a /
        if (isset($array[$path])) {
            return $array[$path];
        }
        //check if $path contains a /
        $pos = strpos($path, $operator);
        //exit condition
        if ($pos === false) {
            return array_key_exists($path, $array) ? $array[$path] : $default;
        }
        $current = substr($path, 0, $pos);

        if (!array_key_exists($current, $array)) {
            return null;
        }

        //recursion
        return self::getValueByPath(substr($path, $pos+1), $array[$current], $default, $operator);
    }
232206
public function getAsArray($key, array $default = array())
    {
        $value = parent::get($key, $default);
        if (is_array($value) && !$value) $value = $default;
        return (array)$value;
    }
1098205
public static function pull($key, $default = null) {

		if(true === is_string($key)) {
			$key = [$key];
		}

		$tmp 	=& static :: $data;
		$amount = count($key);
		$value 	= $default;

		foreach($key as $i => $index) {

			if(true === is_string($index) || true === is_int($index)) {
				
				if(true === isset($tmp[$index])) {

					if($i === $amount - 1) {

						$value = $tmp[$index];
						unset($tmp[$index]);
					}
					else {
						$tmp =& $tmp[$index];
					}
				}
			}
		}

		return $value;
	}
301892
public function pull($key = null, $default = null)
    {
        if (is_null($key)) {
            $value = $this->all();
            $this->clear();

            return $value;
        }

        $value = $this->get($key, $default);
        $this->delete($key);

        return $value;
    }
1044874
public function pull($key, $default = null)
    {
        if (is_array($key)) {
            return $this->pullMany($key, $default);
        }

        return parent::pull($key, $default);
    }
1108350
public function get($path, $default = null)
    {
        $keys       = $this->explode($path);
        $parameters = $this->parameters;

        foreach ($keys as $key) {
            if (isset($parameters[$key])) {
                $parameters = $parameters[$key];
            } else {
                return $default;
            }
        }
        return $parameters;
    }
830930
public function get(array $array, $keys, $default = null)
    {
        $keys = $this->parseKeys($keys);

        if (is_array($array) && $keys) {
            $key = array_shift($keys);
            if (array_key_exists($key, $array)) {
                $value = $array[$key];
                if (!$keys) {
                    return $value;
                }

                if (is_array($value)) {
                    return $this->get($value, $keys, $default);
                }
            }
        }

        return $default;
    }
480570
public function getArray($key, array $default = array())
    {
        $value = $this->get($key, null);

        return null !== $value ? (array) $value : (array) $default;
    }
708185
public function get($path, $default = NULL, $deep = FALSE) {

		return array_key_exists($path, $this->parameters) ? $this->parameters[$path] : $default;

	}
306366
public function get( $path, $default = null )
	{
		$path = trim( $path, '/' );

		// negative cache
		$success = false;
		apc_fetch( '-' . $this->_prefix . $path, $success );

		if( $success === true ) {
			return $default;
		}

		// regular cache
		$success = false;
		$value = apc_fetch( $this->_prefix . $path, $success );

		if( $success === true ) {
			return $value;
		}

		// not cached
		if( ( $value = $this->_getObject()->get( $path, null ) ) === null )
		{
			apc_store( '-' . $this->_prefix . $path, null );
			return $default;
		}

		apc_store( $this->_prefix . $path, $value );

		return $value;
	}
436443
public function getValueByPathOrDefaultValue($path, $defaultValue)
    {
        $value = $this->getValueByPath($path);
        if (is_null($value)) {
            return $defaultValue;
        }

        return $value;
    }