问题
How I can get cell format? I Try
$E->getActiveSheet()->getCellByColumnAndRow(0, 24)->getCalculatedValue()
but it rerurns '6', I need '6 бухта' (sorry for russian letters)
回答1:
$E->getActiveSheet()->getCellByColumnAndRow(0, 24)
->getFormattedValue()
回答2:
you can get the cell format by code,
var_dump($objPHPExcel->getActiveSheet()->getCell('D3')->getStyle()->getNumberFormat()->getFormatCode());
and output will be like:
string(8) "mm-dd-yy"
来源:https://stackoverflow.com/questions/15722801/phpexcel-how-get-cell-format