On Tue, 21 Sep 2004 22:01:02 +0100, Luke <[EMAIL PROTECTED]> wrote:
> however, i'd like to add more meaningful names as the field name
> headings in the excel file. can anyone suggest how i can write a list of
> tab separated headings into $header?
>
If you're talking about hard coding the header, it's not difficult to
do. Just create an array with your desired field names, and print it
out using the join function. Something like:
$fields = array ('field1', 'field2', 'field3');
$header = join ($fields, "\t") . "\n";
I haven't double checked the syntax, but that should be pretty close.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php