public function toString()
    {
        $output = [];
        $output[] = '<table' . $this->renderAttributes($this->getTableAttributes()) . '>';

        if (count($this->specialRows['header'])) {
            $output[] = $this->renderArea($this->specialRows['header'], 'thead', 'th');
        }

        $ids = array_diff(
            array_keys($this->rows),
            array_merge($this->specialRows['header'], $this->specialRows['footer'])
        );

        if (count($ids)) {
            $output[] = $this->renderArea($ids);
        }

        if (count($this->specialRows['footer'])) {
            $output[] = $this->renderArea($this->specialRows['footer'], 'tfoot');
        }

        $output[] = '</table>';

        return implode('', $output);
    }
public function toString()
    {
        $output = [];
        $output[] = '<table' . $this->renderAttributes($this->getTableAttributes()) . '>';

        if (count($this->specialRows['header'])) {
            $output[] = $this->renderArea($this->specialRows['header'], 'thead', 'th');
        }

        $ids = array_diff(
            array_keys($this->rows),
            array_merge($this->specialRows['header'], $this->specialRows['footer'])
        );

        if (count($ids)) {
            $output[] = $this->renderArea($ids);
        }

        if (count($this->specialRows['footer'])) {
            $output[] = $this->renderArea($this->specialRows['footer'], 'tfoot');
        }

        $output[] = '</table>';

        return implode('', $output);
    }
public function toString ( ) { $ output = [ ] ; $ output [ ] = '<table' . $ this -> renderAttributes ( $ this -> getTableAttributes ( ) ) . '>' ; if ( count ( $ this -> specialRows [ 'header' ] ) ) { $ output [ ] = $ this -> renderArea ( $ this -> specialRows [ 'header' ] , 'thead' , 'th' ) ; } $ ids = array_diff ( array_keys ( $ this -> rows ) , array_merge ( $ this -> specialRows [ 'header' ] , $ this -> specialRows [ 'footer' ] ) ) ; if ( count ( $ ids ) ) { $ output [ ] = $ this -> renderArea ( $ ids ) ; } if ( count ( $ this -> specialRows [ 'footer' ] ) ) { $ output [ ] = $ this -> renderArea ( $ this -> specialRows [ 'footer' ] , 'tfoot' ) ; } $ output [ ] = '</table>' ; return implode ( '' , $ output ) ; }
Render the HTML table

@return  string The rendered HTML table

@since   2.1
Render the HTML table