1

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)

enter image description here

4

2 回答 2

0
$E->getActiveSheet()->getCellByColumnAndRow(0, 24)
    ->getFormattedValue()
于 2013-03-31T10:08:41.503 回答
0

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"

于 2016-12-07T09:05:55.730 回答