Using phpspreadsheet, i have a dynamic array (number of items in array can change), i have managed to create a row for each item in the array dynamically but i also need to style it by changing its row height since the text in the row overflows.
// this code creates a row for each item in my array
$columnArray = array_chunk($result, 1);
$spreadsheet->getActiveSheet()
->fromArray(
$columnArray, // The data to set
NULL, // Array values with this value will not be set
'A11' // Top left coordinate of the worksheet range where
// we want to set these values (default is A1)
);
// i then need to use the following code to set the row height
$spreadsheet->getActiveSheet()->getRowDimension('11')->setRowHeight(30);
my desired output is to just have the row height set at 30 for each created row in the array, if there is some type of loop that will work with this code that would be great. Thanks