Re: Creating single row for multiple items.

From: Date: Wed, 03 Sep 2008 16:01:01 +0000
Subject: Re: Creating single row for multiple items.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-279411@lists.php.net to get a copy of this message
On Aug 31, 2008, at 904PM, Tom Shaw wrote:
My array looks very similar to this. I need to create a single row for the items that have the same order number for CSV export. I'd prefer to do this PHP wise instead of SQL. But would appreciate any help I can get.
Please send an example of what you are trying to do. If you just want to put each item in the array on a single line in a csv file, this will do it: $fp = fopen('file.csv', 'w'); foreach ($arr as $line) {
    fputcsv($fp, $line);
} fclose($fp); but from your description, that doesn't sound like what you are looking for. If you send a sample line, we can help you better. Brady

« previous php.general (#279411) next »