2
require_once 'data.php';
echo '<table cellspacing="3" cellpadding="2" border="1">';
reset($mas);
$header = current($mas);
$header = array_merge(array('tankla'=>'tankla'), $header);
foreach ($header as $key=>$val) {
    echo '<th>'.$key.'</th>';
}
echo '</tr>';
foreach ($mas as $tankla=>$data) {
    echo '<tr>';
    echo '<td>'.utf8_decode($tankla).'</td>';
    foreach ($data as $day=>$value) {
        echo '<td style="text-align: right;">'.$value.'</td>';
    }
    echo '</tr>';
}
echo '</table>';

これがphpexcel内にある必要があります。このコードの作成方法に関するアドバイスはありますか?

4

2 に答える 2