-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
22 lines (18 loc) · 741 Bytes
/
Copy pathexample.php
File metadata and controls
22 lines (18 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
include "excel.class.php";
$excel = new Excel();
$excel->setColumns('id','name','email');
$excel->addRow('1','Commodo Cursus','cursus@xyz.com');
$excel->addRow('2','Condimentum Egestas Vulputate','condimentum@xyz.com');
$excel->addRow('3','Fusce Ultricies','fusce@xyz.com');
$excel->addRow('4','Bibendum Vulputate','bibendum@xyz.com');
$excel->addRow('5','Amet Risus Nullam','amet@xyz.com');
$excel->addRows(
array('6','Ultricies Elit','ultricies@xyz.com'),
array('7','Lorem Commodo Etiam','lorem@xyz.com'),
array('8','Vulputate','vulputate@xyz.com'),
array('9','Condimentum Sit Commodo Pharetra','condimentum@xyz.com'),
array('10','Vulputate Fusce','vulputate@xyz.com')
);
//$excel->save();
$excel->download();