function build_table($array){
$html = '<table>';
foreach( $array as $key=>$value){
$html .= '<tr>';
foreach($value as $key2=>$value2){
$html .= '<td>' . htmlspecialchars($value2) . '</td>';
}
$html .= '</tr>';
}
$html .= '</table>';
return $html;
}
function build_table($array){
$html = '';
if (count($array)) {
foreach( $array as $key=>$value){
if (count($value)) {
$html.= '<tr><td>'.implode('</td><td>',$value).'</td></tr>';
}
}
if ($html != '') $html = '<table>'.$html.'</table>';
}
return $html;
}
function build_table($array){
$html = '';
foreach( $array as $key=>$value){
$html .= '<tr>';
foreach($value as $key2=>$value2){
$html .= '<td>' . htmlspecialchars($value2) . '</td>';
}
$html .= '</tr>';
}
return $html? '<table>' . $html . '</table>' : '';
}