This code sample exports a single table from MySQL Database to Excel in tab-delimited format.
How to insert an array into a Database
Convert an array into a delimited string in PHP
Using the implode() method to convert your array into a delimited string, then use explode() to reverse the process and convert the concatenated string back into an array. Use the implode() method to convert your array into a delimited string, then use explode() to reverse the process and convert the concatenated string back into an