src/Components/HtmlTable.php
/**
     * Echo the HTML code of the table
     * If column headers were added, a data-label will be added to each cell
     *
     * @return string
     */
Echo the HTML code of the table
If column headers were added, a data-label will be added to each cell

@return string
Echo the HTML code of the table If column headers were added a data - label will be added to each cell @return string
public function display(){
        if(!empty($this->tableHeaders)){
            $this->table .= $this->createTableHead();
        } 
        if(!empty($this->tableRows)){
            $this->table .= $this->createTableBody();
        }
        $this->table .= '</table>';
       echo $this->table;
    }
public function display ( ) { if ( ! empty ( $ this -> tableHeaders ) ) { $ this -> table .= $ this -> createTableHead ( ) ; } if ( ! empty ( $ this -> tableRows ) ) { $ this -> table .= $ this -> createTableBody ( ) ; } $ this -> table .= '</table>' ; echo $ this -> table ; }
Echo the HTML code of the table
 If column headers were added, a data-label will be added to each cell
Echo the HTML code of the table If column headers were added a data - label will be added to each cell
/**
        * Joining the table parts together
        */ // Adding table header // Adding table rows // Closing table tag /**
        * Echo HTML table
        */