Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export to CSV with customizing the font color using PHP

Tags:

php

csv

In my application i am able to export data to CSV file successfully, But i need some contents of the CSV file to be in "bold" and "color". So is it possible way to do it? If so please help me out.

like image 322
sandeep Avatar asked Jan 06 '11 05:01

sandeep


2 Answers

If it is a valid option, you can export to Excel format using PHPExcel. This supports font color, weight etc..

like image 88
Burak Guzel Avatar answered Sep 30 '22 20:09

Burak Guzel


The basic CSV file format doesn't have any way to represent such attributes. If the file is to be read by a specific application, maybe it supports a richer format that you can output in?

like image 24
André Paramés Avatar answered Sep 30 '22 20:09

André Paramés