public static function extract($path, $items)
    {
        $paths = explode('.', $path);

        foreach ($paths as $value) {
            if (self::iterable($items) && array_key_exists($value, $items)) {
                $items = $items[$value];
            } else {
                return false;
            }
        }

        return $items;
    }
public static function extract($path, $items)
    {
        $paths = explode('.', $path);

        foreach ($paths as $value) {
            if (self::iterable($items) && array_key_exists($value, $items)) {
                $items = $items[$value];
            } else {
                return false;
            }
        }

        return $items;
    }
public static function extract ( $ path , $ items ) { $ paths = explode ( '.' , $ path ) ; foreach ( $ paths as $ value ) { if ( self :: iterable ( $ items ) && array_key_exists ( $ value , $ items ) ) { $ items = $ items [ $ value ] ; } else { return false ; } } return $ items ; }
Read array by path using dot

@param string             $path
@param array|\Traversable $items
@return mixed
Read array by path using dot