html tablo biçimlendirme tarih dizesi

0 Cevap php

Birisi nasıl bu tarih damgası değiştirmek ve bu bir html tablo yazdırmak için bana gösterebilir misin?

Ben bu zaman damgası biçimi ile bir giriş dosyası var:

4-Start=20100901180002

This time format is stored like this in an array. I print out the array like so to create an html table:

foreach ($data as $row){
   $counter ++;                                        
   $class = $counter % 2 === 0 ? 'alt1' : 'alt2';       
   echo '<tr class="' . $class . '">';                  

     foreach ($keys as $column)                 
        if (isset($row[$column])){              
          echo '<td>' . $row[$column];
          } else {
          echo '<td>' . '' . '</td>';
        }
}
echo '</table>';

Bunu nasıl bu tablodaki damgası değiştirebilirim? 2010-09-01 18:00:02

0 Cevap