'php-xlsxwriter: how to get a color in a row

I have the follwoing code:

$writer->writeSheetHeader (Preisliste, $sheetheaders,
        ['auto_filter'=>true, 'widths'=>[20,35,12,40,15,8,8,10,13,13,13,13,13,13], 
        'font-style'=>'bold', 'fill'=>'#eee', 
        'freeze_rows'=>1, 
        'freeze_columns'=>0] );

$writer->writeSheetRow(Preisliste, $sheetrow); 

Now I want to have a background color for example in the 3rd total row. I do not find a solution.

Lookinf forward for help. Thanx.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source