daily pastebin goal
12%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PHPExcel - read time value from a cell
  2. $objPHPExcel = PHPExcel_IOFactory::load($filename);
  3.  $objWorksheet = $objPHPExcel->getActiveSheet();
  4.  echo $objWorksheet->getCellByColumnAndRow(3, 5)->getValue();
  5.    
  6. $cell = $objWorksheet->getCellByColumnAndRow(3, 5);
  7. $cell_value = PHPExcel_Style_NumberFormat::toFormattedString($cell->getCalculatedValue(), 'hh:mm:ss');
  8. echo $cell_value;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top