private function getTableCellWidth($total, $cells)
    {
        $widths = [];
        if (is_int($cells)) {
            $width = floor($total/$cells);
            for ($i=0; $i<$cells; ++$i) {
                $widths[] = $width;
            }
        }
        else if (is_array($cells)){
            $width = floor($total/count($cells));
            foreach ($cells as $i) {
                $widths[$i] = $width;
            }
        }
        return $widths;
    }
private function getTableCellWidth($total, $cells)
    {
        $widths = [];
        if (is_int($cells)) {
            $width = floor($total/$cells);
            for ($i=0; $i<$cells; ++$i) {
                $widths[] = $width;
            }
        }
        else if (is_array($cells)){
            $width = floor($total/count($cells));
            foreach ($cells as $i) {
                $widths[$i] = $width;
            }
        }
        return $widths;
    }
private function getTableCellWidth ( $ total , $ cells ) { $ widths = [ ] ; if ( is_int ( $ cells ) ) { $ width = floor ( $ total / $ cells ) ; for ( $ i = 0 ; $ i < $ cells ; ++ $ i ) { $ widths [ ] = $ width ; } } else if ( is_array ( $ cells ) ) { $ width = floor ( $ total / count ( $ cells ) ) ; foreach ( $ cells as $ i ) { $ widths [ $ i ] = $ width ; } } return $ widths ; }
Obtener el ancho de las columnas de una tabla
@author Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl)
@version 2016-01-22
Obtener el ancho de las columnas de una tabla