📜  phpexcel 设置数据类型字符串 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:38.155000             🧑  作者: Mango

代码示例2
$objPHPExcel->setActiveSheetIndex(0)
    ->setCellValue('A1', 'Field Name');
    
$objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(50);

$columnArray    = array("A","B","C","D","E","F","G","H");
    
$objPHPExcel->setActiveSheetIndex(0)
->setCellValueExplicit("A", VALUE, PHPExcel_Cell_DataType::TYPE_STRING)