PHP Questions Home
Categories
Arrays
Files
Forms
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Functions
PHP Functions

More PHP
Top Questions
Ask a Question
Sponsors

sponsor ad
Advertise Here

How can I export data into Word/Excel documents?


There are many possible ways to achieve this with PHP.

One of the simplest ways to get data into a format that can be used with Excel is simply to write a .csv text file, or comma separated file, and then open this in excel.

This will split the data into columns based on where the commas are, so you will need to ensure that your data is well formatted to make this value, and so this means that the comma only appears as a separator for instance and if it appears elsewhere it is escaped.

Ask a Question / Comment on this Question and Answer >>>

More files PHP Questions

How can i upload large files like mp3 songs using php?
What is the use of file in php?
Where is a text file i created kept?
HOW CAN I VIEW THE WORD DOCUMENT IN THE PHP PAGE
What does file_get_contents do?