src/TerminalObject/Basic/Columns.php
protected function columns()
    {
        $this->data    = $this->setData();
        $column_widths = $this->getColumnWidths();
        $output        = [];
        $count         = count(reset($this->data));

        for ($i = 0; $i < $count; $i++) {
            $output[] = $this->getRow($i, $column_widths);
        }

        return $output;
    }
protected function columns()
    {
        $this->data    = $this->setData();
        $column_widths = $this->getColumnWidths();
        $output        = [];
        $count         = count(reset($this->data));

        for ($i = 0; $i < $count; $i++) {
            $output[] = $this->getRow($i, $column_widths);
        }

        return $output;
    }
protected function columns ( ) { $ this -> data = $ this -> setData ( ) ; $ column_widths = $ this -> getColumnWidths ( ) ; $ output = [ ] ; $ count = count ( reset ( $ this -> data ) ) ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ output [ ] = $ this -> getRow ( $ i , $ column_widths ) ; } return $ output ; }
Get columns for a regular array

@return array
Get columns for a regular array