Can someone show me how to change this date stamp and print this in an html table?
I have an input file with this time stamp format:
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>';
How do I change the timestamp in this table to this? 2010-09-01 18:00:02