I`m using the PHPExcel class ,to write in an excel file.
My question is: how to write a data in a cell with superscript,if my value is ( M<sup>3</sup>) to M3 (in excel)
// $data['dataLashing'][$i]['units_name'] - it`s a value from db in LOOP
$getExcelObject
->mergeCells("A$startRow:E$startRow")->setCellValue("A$startRow",$data['dataLashing'][$i]['material'])
->mergeCells("F$startRow:G$startRow")->setCellValue("F$startRow",$data['dataLashing'][$i]['units_name'])
->mergeCells("H$startRow:I$startRow")->setCellValue("H$startRow",$data['dataLashing'][$i]['quantity']);
Try this one: