I found it strange why fgetcsv() was included since version 3.0.8 and fputcsv() only since 5.1.0RC1 when both are so closely interrelated. Heres fputcsv for ones not running on a minimum of PHP 5.1.0RC1. Assuming php4.inc.php includes functions that natively exist in PHP 5 and not in version 4. The str_replace('"', '""', $val); is because Excel doesn't seem to understand \".Vanakkam !
|php||Monday, May 07, 2007|