Re: Creating single row for multiple items.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux