Solved

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

Posted on 2008-10-06
6
1,388 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
  • 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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 create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

830 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