I need to export data from php (data retrieved from mysql database) to excel. I\'m using Zend Framework. I need to do some changes to my data before exporting to excel. Actu
You can use CSV to make a importable format for excel. This is the simpliest way to do it.
CSV looks like this :
"my first cellcontent", "my second cell content", "my third cell content"
"second line, first cell content", "etc", "etc
Each row represents an Excel row, you put cell content between double quotes, and separated by commas.
Be careful to \r\n
if you've got some in your datas, it can break your CSV and create unwanted new lines.