Laravel Excel Maatwebsite/Excel 显示 +12

Laravel Excel Maatwebsite/Excel showing +12

嗯,伙计们,你们知道为什么这是 +12 吗?未显示全文,这只是我的 PHP 代码中的一个字符串。非常感谢。

终于在这里找到了我的答案,只需使用 DataType::TYPE_STRING,现在显示我需要的数据。

use PhpOffice\PhpSpreadsheet\Cell\DataType;


$sheet->getCell("Y")->setValue($data["ref_num"])->setDataType(DataType::TYPE_STRING);