Excel Library



( ZN >= 3.0.4 )

Basically, it is a library that is created to transfer serial data to xls file and csv file.

 

# Methods


void arrayToXLS ( Array $ data , String $ file = 'excel.xls' )
Array CSVToArray ( String $ file )

 

# ArrayToXLS ( ZN >= 3.0.4 )


Format the file with the .xls extension.

Parameters

Array $ data Sequence.
String $ file = 'excel.xls' Which name will be saved. There is no need to specify the .xls extension.
return void

uses

Excel::arrayToXLS
([
    ['1', '2', '3'],
    ['1', '2', '3']
],  'testXLS');

 

# CSVToArray ( ZN >= 3.0.4 )


Convert file with .csv extension.

Parameters

String $ file Which name will be saved. There is no need to specify a .csv extension
return void

uses

output(Excel::CSVToArray('testCSV'));