/** * Returns a registered object by its dot-notated path. */ public static function get($dotpath) { if (false === strpos($dotpath, '.')) { return isset(static::$data[$dotpath]) ? static::$data[$dotpath] : null; } return \Phpf\Util\Arr::dotGet(static::$data, $dotpath); }
/** * Retrieves a value from $array given its path in dot notation */ function array_get(array &$array, $dotpath) { return \Phpf\Util\Arr::dotGet($array, $dotpath); }