Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PHPExcel - read time value from a cell
- $objPHPExcel = PHPExcel_IOFactory::load($filename);
- $objWorksheet = $objPHPExcel->getActiveSheet();
- echo $objWorksheet->getCellByColumnAndRow(3, 5)->getValue();
- $cell = $objWorksheet->getCellByColumnAndRow(3, 5);
- $cell_value = PHPExcel_Style_NumberFormat::toFormattedString($cell->getCalculatedValue(), 'hh:mm:ss');
- echo $cell_value;
Add Comment
Please, Sign In to add comment