PHPExcelクラスを使用して、Excelファイルに書き込む方法です。
phpExcel、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']);
すごい.. thx !!条件付き動的に!thx! – Dezigo