fwrite($fp,$header); - Making the headers BOLD

How do the make the header bold/italic etc in the headers when I write into a csv file.
fwrite($fp,$header);

TY
martyjeAsked:
Who is Participating?
 
glcumminsCommented:
CSV files do not contain formatting, so it is not possible to make text bold.
0
 
nahimeCommented:
It's a simple text file, you cannot add formatting like italic or bold
0
 
martyjeAuthor Commented:
If that 'd be an exel file, that 'd work?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
nahimeCommented:
yes, but you have to use some framework to write on xls.

See this link:
http://www.phphacks.com/content/view/26/33/
0
 
glcumminsCommented:
If I remember correctly, when you import a CSV into Excel and specify the first line as headers, Excel boldfaces the header text for you. Does this fit with your observations?
0
 
martyjeAuthor Commented:
No not really. I have my CSV file opening inot Excel file but it doesn't bold the header.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.