split

split

ADVANCED / PREMIUM BASIC

Splits an Excel spreadsheet per sheet.

Description
public split($source, $target)

This method allows you to split per sheet an XLSX spreadsheet.

Parameters

source

The path to the source XLSX file.

target

The path to the resulting XLSX file.

Code samples

Example #1

Release notes
  • phpxlsx 4.5:
    • allow using a custom path for the target files distinct than the script folder.
  • phpxlsx 1.0:
    • new method.