PHP-Xlswriter
Github
Gitee
Pecl
Search
⌃
K
Links
Why use xlswriter
English
Install
Quick start
Read file
Chart
Cell
Memory model
Worksheet
Style
Download
Style list
Italic
Align
Text deletion (text middle line)
Underline
Text wrap
Text color
Text size
Bold
Cell border
Border style constant
Background color
Color constant
Font
Number format
CSV
Printed
Assistant functions
Project recommendation
中文简体
项目推荐
Powered By
GitBook
Background color
Function Prototype
background
(
int
$color
,
int
$pattern
=
self
::
PATTERN_SOLID
):
self
int $color
color const or RGB hex
int $pattern
pattern style
Example
$format
=
new
\
Vtiful
\
Kernel
\
Format
(
$fileHandle
);
$backgroundStyle
=
$format
->
background
(
\
Vtiful
\
Kernel
\
Format
::
COLOR_RED
)
->
toResource
();
Previous
Border style constant
Next
Color constant
Last modified
3yr ago