Re: fwrite csv merged cells
- From: Pasquale <spdrweb@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 20:34:51 GMT
Oli Filth wrote:
Pasquale wrote:
How can I fwrite to a csv file with the row having merged cells and centered text? For example, a section title:
Title col1 col2 col3 col4 col5 col6
Correct me if I'm wrong, but isn't the point of a CSV file that the *Variables* are *Separated* by *Commas*? It's purely a data-holdig format, not a presentation format. Why would you want to centre things or merge cells?
Can I use XLS to get the format above? If so, how?
I need the administrator to be able to open the file and see the information in the format above and make changes if desired. I just think it would be easier to read rather than everything clumped together.
But anwyay, that's just manipulating strings in PHP. Nothing particularly complicated about that! Or is there something that I'm missing about what you want to do?
e.g.
$str = $var1 . " " . $var2 . " " . $var3;
If you want to align things nicely, use str_pad().
And centering things is just appropriate use of strlen().
.
- References:
- fwrite csv merged cells
- From: Pasquale
- Re: fwrite csv merged cells
- From: Oli Filth
- fwrite csv merged cells
- Prev by Date: Re: fwrite csv merged cells
- Previous by thread: Re: fwrite csv merged cells
- Index(es):
Relevant Pages
|