public function collapse()
    {
        $results = [];

        foreach ($this->array as $item) {
            if (!is_array($item)) {
                continue;
            }

            $results = array_merge($results, $item);
        }

        return new static($results);
    }
public function collapse()
    {
        $results = [];

        foreach ($this->array as $item) {
            if (!is_array($item)) {
                continue;
            }

            $results = array_merge($results, $item);
        }

        return new static($results);
    }
public function collapse ( ) { $ results = [ ] ; foreach ( $ this -> array as $ item ) { if ( ! is_array ( $ item ) ) { continue ; } $ results = array_merge ( $ results , $ item ) ; } return new static ( $ results ) ; }
Collapse an array of arrays into a single array returning a new instance of `ArrayObject`
with the collapsed items.

@return static
Collapse an array of arrays into a single array returning a new instance of ArrayObject with the collapsed items .