Solved

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

Posted on 2008-10-06
6
1,408 Views
Last Modified: 2012-05-05
How do the make the header bold/italic etc in the headers when I write into a csv file.
fwrite($fp,$header);

TY
0
Comment
Question by:martyje
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 24

Accepted Solution

by:
glcummins earned 125 total points
ID: 22650326
CSV files do not contain formatting, so it is not possible to make text bold.
0
 
LVL 8

Expert Comment

by:nahime
ID: 22650377
It's a simple text file, you cannot add formatting like italic or bold
0
 

Author Comment

by:martyje
ID: 22650412
If that 'd be an exel file, that 'd work?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Expert Comment

by:nahime
ID: 22650453
yes, but you have to use some framework to write on xls.

See this link:
http://www.phphacks.com/content/view/26/33/
0
 
LVL 24

Expert Comment

by:glcummins
ID: 22650546
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
 

Author Comment

by:martyje
ID: 22650821
No not really. I have my CSV file opening inot Excel file but it doesn't bold the header.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question