-
I'm learning convert multiple file into one,
In the part of Style setting, also when I've tried change
Is there I've done anything wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
oleibman
Feb 28, 2022
Replies: 1 comment 1 reply
-
You did 2 things wrong. You need to remove $styleArray = [
'font' => [
'size' => 12,
'color' => ['rgb' =>'FFFFFF'],
],
'alignment' => [
'horizontal' => Alignment::HORIZONTAL_CENTER,
'vertical' => Alignment::VERTICAL_CENTER,
'wrapText' => true,
],
'borders' => [
'allBorders' => [
'borderStyle' => Border::BORDER_MEDIUM,
],
],
'fill' => [
'fillType' => Fill::FILL_SOLID,
'startColor' => [
'argb' => 'FF000000',
],
'endColor' => [
'argb' => 'FF000000',
],
],
]; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You did 2 things wrong. You need to remove
array(
from your assignment to $styleArray, and the font color needs to be an array. The following should work: