Thanks - what I want to do is just say something like fputcsv($myarray) -
and not have to worry about putting in the commas or whatever myself... will
fputs do that?

(In case it wasn't clear - I'm wanting to write back to the file, having
already read from it using fgetcsv)

swadie


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Steve Wade
Youth Outreach Coordinator
Fusion Australia Ltd (Sydney North)
ABN 26 001 273 105
+61 2 9477 1110


-----Original Message-----
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, 14 May 2001 14:19
To: 'Steve Wade'; PHP News
Subject: RE: [PHP] fgetcsv


> Hi all - just wondering if anyone knows of a function like
> fputcsv - that is, writes a line to a csv file - opposite of fgetcsv.

A CSV file is just a text file with a different file extension,
so you can use fgets to write it out...

Jason

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to