src/TerminalObject/Basic/Columns.php
protected function setArrayOfArraysData()
    {
        $this->setColumnCountViaArray($this->data);

        $new_data = array_fill(0, $this->column_count, []);

        foreach ($this->data as $items) {
            for ($i = 0; $i < $this->column_count; $i++) {
                $new_data[$i][] = (array_key_exists($i, $items)) ? $items[$i] : null;
            }
        }

        return $new_data;
    }
protected function setArrayOfArraysData()
    {
        $this->setColumnCountViaArray($this->data);

        $new_data = array_fill(0, $this->column_count, []);

        foreach ($this->data as $items) {
            for ($i = 0; $i < $this->column_count; $i++) {
                $new_data[$i][] = (array_key_exists($i, $items)) ? $items[$i] : null;
            }
        }

        return $new_data;
    }
protected function setArrayOfArraysData ( ) { $ this -> setColumnCountViaArray ( $ this -> data ) ; $ new_data = array_fill ( 0 , $ this -> column_count , [ ] ) ; foreach ( $ this -> data as $ items ) { for ( $ i = 0 ; $ i < $ this -> column_count ; $ i ++ ) { $ new_data [ $ i ] [ ] = ( array_key_exists ( $ i , $ items ) ) ? $ items [ $ i ] : null ; } } return $ new_data ; }
Re-configure an array of arrays into column arrays
Re - configure an array of arrays into column arrays