Skip to content

Instantly share code, notes, and snippets.

@ekka21
Created August 17, 2012 17:00
Show Gist options
  • Save ekka21/3380600 to your computer and use it in GitHub Desktop.
Save ekka21/3380600 to your computer and use it in GitHub Desktop.
php: export data to excel
<?php
// php-export-data by Eli Dickinson, http://github.com/elidickinson/php-export-data
require 'php-export-data.class.php';
$exporter = new ExportDataExcel('browser', 'test.xls');
$exporter->initialize();
$exporter->addRow(array("This", "is", "a", "test"));
$exporter->addRow(array(1, 2, 3, "123-456-7890"));
$exporter->finalize();
exit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment