src/mako/utility/Arr.php
public static function get(array $array, string $path, $default = null)
	{
		$segments = explode('.', $path);

		foreach($segments as $segment)
		{
			if(!is_array($array) || !array_key_exists($segment, $array))
			{
				return $default;
			}

			$array = $array[$segment];
		}

		return $array;
	}
public static function get(array $array, string $path, $default = null)
	{
		$segments = explode('.', $path);

		foreach($segments as $segment)
		{
			if(!is_array($array) || !array_key_exists($segment, $array))
			{
				return $default;
			}

			$array = $array[$segment];
		}

		return $array;
	}
public static function get ( array $ array , string $ path , $ default = null ) { $ segments = explode ( '.' , $ path ) ; foreach ( $ segments as $ segment ) { if ( ! is_array ( $ array ) || ! array_key_exists ( $ segment , $ array ) ) { return $ default ; } $ array = $ array [ $ segment ] ; } return $ array ; }
Returns value from array using "dot notation".

@param  array  $array   Array we're going to search
@param  string $path    Array path
@param  mixed  $default Default return value
@return mixed
Returns value from array using dot notation .