src/TerminalObject/Basic/Columns.php
protected function associativeColumns()
    {
        $column_width = $this->getColumnWidth(array_keys($this->data));
        $output       = [];

        foreach ($this->data as $key => $value) {
            $output[] = $this->pad($key, $column_width) . $value;
        }

        return $output;
    }
protected function associativeColumns()
    {
        $column_width = $this->getColumnWidth(array_keys($this->data));
        $output       = [];

        foreach ($this->data as $key => $value) {
            $output[] = $this->pad($key, $column_width) . $value;
        }

        return $output;
    }
protected function associativeColumns ( ) { $ column_width = $ this -> getColumnWidth ( array_keys ( $ this -> data ) ) ; $ output = [ ] ; foreach ( $ this -> data as $ key => $ value ) { $ output [ ] = $ this -> pad ( $ key , $ column_width ) . $ value ; } return $ output ; }
Get columns for an associative array

@return array
Get columns for an associative array