setColumnSettings

setColumnSettings

BASIC / ADVANCED / PREMIUM

Sets column settings.

Description
public setColumnSettings($position, $options = array())

This method sets column settings.

Parameters

position

Column position: A, B, C...

options

Key Type Description
hidden bool Hidden attribute.
width float Column width.
Code samples

Example #1

The resulting XLSX looks like:

Release notes
  • phpxlsx 2.0:
    • state option.
  • phpxlsx 2.0:
    • new method.