addBreak

addBreak

BASIC / ADVANCED / PREMIUM

Inserts a row or column break into the Excel spreadsheet.

Description
public addBreak($position, $type = 'row')

This method allows the insertion of a break into the sheet.

Parameters

position

Integer value: 1, 2, 5...

type

'row' or 'col'.

Code samples

Example #1

The resulting XLSX looks like:

Release notes
  • phpxlsx 1.0:
    • new method.