public static function render() {
        self::newRow();
        ob_start();
        ?>

        <table <?php echo (!empty(self::$table_attributes)) ? self::parseAttributes(self::$table_attributes) : ""; ?>>
            <?php
            if (!empty(self::$headers)) {
                ?>

                <thead>
                    <tr>
                        <?php
                        foreach (self::$headers as $header) {
                            ?>

                            <th <?php echo self::parseAttributes($header[1]); ?>><?php echo $header[0] ?></th>
                            <?php
                        }
                        ?>

                    </tr>
                </thead>
                <?php
            }
            if (!empty(self::$rows)) {
                ?>

                <tbody>
                    <?php
                    foreach (self::$rows as $rowData) {
                        if (count($rowData) > 1) {
                            ?>

                            <tr <?php echo self::parseAttributes($rowData[0]); ?>>
                                <?php
                                foreach ($rowData[1] as $row) {
                                    ?>
                                    <td <?php echo self::parseAttributes($row[1]); ?>><?php echo $row[0] ?></td>
                                    <?php
                                }
                                ?>

                            </tr>
                            <?php
                        }
                    }
                    ?>

                </tbody>
                <?php
            }
            if (!empty(self::$footers)) {
                ?>

                <tfoot>
                    <tr>
                        <?php
                        foreach (self::$footers as $footer) {
                            ?>

                            <th <?php echo self::parseAttributes($footer[1]); ?>><?php echo $footer[0] ?></th>
                            <?php
                        }
                        ?>

                    </tr>
                </tfoot>
            <?php }
            ?>
        </table>
        <?php
        return ob_get_clean();
    }
public static function render() {
        self::newRow();
        ob_start();
        ?>

        <table <?php echo (!empty(self::$table_attributes)) ? self::parseAttributes(self::$table_attributes) : ""; ?>>
            <?php
            if (!empty(self::$headers)) {
                ?>

                <thead>
                    <tr>
                        <?php
                        foreach (self::$headers as $header) {
                            ?>

                            <th <?php echo self::parseAttributes($header[1]); ?>><?php echo $header[0] ?></th>
                            <?php
                        }
                        ?>

                    </tr>
                </thead>
                <?php
            }
            if (!empty(self::$rows)) {
                ?>

                <tbody>
                    <?php
                    foreach (self::$rows as $rowData) {
                        if (count($rowData) > 1) {
                            ?>

                            <tr <?php echo self::parseAttributes($rowData[0]); ?>>
                                <?php
                                foreach ($rowData[1] as $row) {
                                    ?>
                                    <td <?php echo self::parseAttributes($row[1]); ?>><?php echo $row[0] ?></td>
                                    <?php
                                }
                                ?>

                            </tr>
                            <?php
                        }
                    }
                    ?>

                </tbody>
                <?php
            }
            if (!empty(self::$footers)) {
                ?>

                <tfoot>
                    <tr>
                        <?php
                        foreach (self::$footers as $footer) {
                            ?>

                            <th <?php echo self::parseAttributes($footer[1]); ?>><?php echo $footer[0] ?></th>
                            <?php
                        }
                        ?>

                    </tr>
                </tfoot>
            <?php }
            ?>
        </table>
        <?php
        return ob_get_clean();
    }
public static function render ( ) { self :: newRow ( ) ; ob_start ( ) ; ?>

        <table <?php echo ( ! empty ( self :: $ table_attributes ) ) ? self :: parseAttributes ( self :: $ table_attributes ) : "" ; ?>>
            <?php if ( ! empty ( self :: $ headers ) ) { ?>

                <thead>
                    <tr>
                        <?php foreach ( self :: $ headers as $ header ) { ?>

                            <th <?php echo self :: parseAttributes ( $ header [ 1 ] ) ; ?>><?php echo $ header [ 0 ] ?></th>
                            <?php } ?>

                    </tr>
                </thead>
                <?php } if ( ! empty ( self :: $ rows ) ) { ?>

                <tbody>
                    <?php foreach ( self :: $ rows as $ rowData ) { if ( count ( $ rowData ) > 1 ) { ?>

                            <tr <?php echo self :: parseAttributes ( $ rowData [ 0 ] ) ; ?>>
                                <?php foreach ( $ rowData [ 1 ] as $ row ) { ?>
                                    <td <?php echo self :: parseAttributes ( $ row [ 1 ] ) ; ?>><?php echo $ row [ 0 ] ?></td>
                                    <?php } ?>

                            </tr>
                            <?php } } ?>

                </tbody>
                <?php } if ( ! empty ( self :: $ footers ) ) { ?>

                <tfoot>
                    <tr>
                        <?php foreach ( self :: $ footers as $ footer ) { ?>

                            <th <?php echo self :: parseAttributes ( $ footer [ 1 ] ) ; ?>><?php echo $ footer [ 0 ] ?></th>
                            <?php } ?>

                    </tr>
                </tfoot>
            <?php } ?>
        </table>
        <?php return ob_get_clean ( ) ; }
Renders the HTML Table
@return HTMLContent
Renders the HTML Table