Get an item from the collection by path.

@param  mixed  $path
@param  mixed  $default
@return mixed
165126
public function get($path, $default = null)
	{
		return Arr::get($this->items, $this->keyFor($path), $default);
	}
1106058
public function get($path, $default=Null)
    {
        $current = $this->data;
        $p = strtok($path, '.');

        while ($p !== false) {
            if (!isset($current[$p])) {
                return is_null($default) ? $this->getDefault($path) : $default;
            }
            $current = $current[$p];
            $p = strtok('.');
        }

        return $current;
    }
215188
public function getData($path, $default = null)
    {
        return $this->helper->arr()->get($this->storage, $path, $default);
    }
58694
public function getItem($name, $default = null)
    {
        if (empty($this->_items[$name])) {
            $this->_items[$name] = $default;
        }
        $item = &$this->_items[$name];
        if (is_array($item) || is_null($item)) {
            $item = $this->createItem($name, $item ?: []);
        }

        return $item;
    }
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;
	}
1191853
public function get($key, $default = null)
    {
        return ArrayHelper::get($this->getItems(), $key, $default, $useDotSyntax = true);
    }
861932
public function getField($path, $default = null)
    {
        if (($current = $this->getContent()) && \is_array($current)) {
            $p = strtok((string) $path, '.');

            while ($p !== false) {
                if (! isset($current[$p])) {
                    return $default;
                }
                $current = $current[$p];
                $p       = strtok('.');
            }
        }

        return $current;
    }
1247418
public function get($key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->elements;
        }
        if ($this->exists($this->elements, $key)) {
            return $this->elements[$key];
        }
        if (strpos($key, '.') === false) {
            return $default;
        }
        $items = $this->elements;
        foreach (explode('.', $key) as $segment) {
            if (!is_array($items) || !$this->exists($items, $segment)) {
                return $default;
            }
            $items = &$items[$segment];
        }
        return $items;
    }
977457
public function get($key, $default = null)
    {
        if ($this->exists($key)) {
            return $this->items[$key];
        }

        $result = $this->items;

        foreach (explode('.', $key) as $piece) {
            if (is_array($result) && array_key_exists($piece, $result)) {
                $result = $result[$piece];
            } else {
                return $default;
            }
        }

        return $result;
    }
123710
def get(self, path, default=None):
        

        try:
            return self.__getitem__(path)
        except KeyError as error:
            return default
296045
public function get($key, $default = null)
    {
        $value = parent::get($key, $default);
        if (is_array($value)) {
            $value = array_shift($value);
        }
        return $value;
    }
371109
public static function get($arr, $str_path, $default=null) {
		$path = explode('.', $str_path);
		return static::array_get($arr, $path, $default);
	}
507152
static function pathGet($values, $path, $default = NULL) {
        foreach ($path as $key) {
            if (!is_array($values) || !isset($values[$key])) {
                return $default;
            }
            $values = $values[$key];
        }
        return $values;
    }
87638
public function get($path, $default = null)
    {
        $path = explode($this->separator, $path);
        $item = &$this->item;
        
        foreach ($path as $key) {
            
            if (!is_array($item)) {
                return $default;
            }
            
            if (!array_key_exists($key, $item)) {
                return $default;
            }
            
            $item = &$item[$key];
        }
        
        return $item;
    }
712634
public function get($key, $default = NULL) {

		return array_key_exists($key, $this->values) ? $this->values[$key] : $default;

	}
418119
public function get($path, $default = null)
	{
		// Return default value if path is empty
		if (empty($path))
		{
			return $default;
		}

		if (strpos($path, $this->separator))
		{
			return parent::get($path, $default);
		}

		$nodes = get_object_vars($this->data);
		$found = false;

		// Traverse the registry to find the correct node for the result.
		foreach ($nodes as $n => $node)
		{
			if (is_array($node) && isset($node[$path]))
			{
				$value = $node[$path];
				$found = true;
				continue;
			}

			if (!isset($node->$path))
			{
				continue;
			}

			$value = $node->$path;
			$found = true;
		}

		if (!$found || $value === null || $value === '')
		{
			//return $default;
			return parent::get($path, $default);
		}

		return $value;
	}
658272
public function get(string $key, $default = null)
    {
        return ($value = $this->offsetGet($key)) === null ? $default : $value;
    }