public static function renderTable(
        array $head = [], 
        array $body = [], 
        array $attributes = []
    ) : string 
    {
        $strHead = "";
        $strBody = "";
        
        foreach ($head as $thRow) {
            $strHead .= self::renderTableHeaderRow($thRow);
        }
        if ($strHead != "") {
            $strHead = self::thead($strHead);
        }
        
        foreach ($body as $tr) {
            $strBody .= self::renderTableRow($tr);
        }
        if ($strBody != "") {
            $strBody = self::tbody($strBody);
        }
        
        return self::tag("table", $strHead.$strBody, $attributes);
    }
public static function renderTable(
        array $head = [], 
        array $body = [], 
        array $attributes = []
    ) : string 
    {
        $strHead = "";
        $strBody = "";
        
        foreach ($head as $thRow) {
            $strHead .= self::renderTableHeaderRow($thRow);
        }
        if ($strHead != "") {
            $strHead = self::thead($strHead);
        }
        
        foreach ($body as $tr) {
            $strBody .= self::renderTableRow($tr);
        }
        if ($strBody != "") {
            $strBody = self::tbody($strBody);
        }
        
        return self::tag("table", $strHead.$strBody, $attributes);
    }
public static function renderTable ( array $ head = [ ] , array $ body = [ ] , array $ attributes = [ ] ) : string { $ strHead = "" ; $ strBody = "" ; foreach ( $ head as $ thRow ) { $ strHead .= self :: renderTableHeaderRow ( $ thRow ) ; } if ( $ strHead != "" ) { $ strHead = self :: thead ( $ strHead ) ; } foreach ( $ body as $ tr ) { $ strBody .= self :: renderTableRow ( $ tr ) ; } if ( $ strBody != "" ) { $ strBody = self :: tbody ( $ strBody ) ; } return self :: tag ( "table" , $ strHead . $ strBody , $ attributes ) ; }
Put all elements together to form a standard table

@param array $head two dimensional rows and cells (no keys)
@param array $body two dimensional rows and cells (no keys)
@param array $attributes
@return string   Compiled HTML Table
Put all elements together to form a standard table