Last active
December 31, 2017 00:56
-
-
Save puiutucutu/689697b476a823c98cd0ee5f4a4e318d to your computer and use it in GitHub Desktop.
Export csv from buffer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-type: application/vnd.ms-excel"); | |
header("Content-Disposition: attachment;Filename=spreadsheet.xls"); | |
echo 'First Name' . "\t" . 'Last Name' . "\t" . 'Phone' . "\n"; | |
echo 'John' . "\t" . 'Doe' . "\t" . '555-5555' . "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment