Re: Usage examples for File_CSV?

From: Date: Wed, 13 Oct 2004 07:33:05 +0000
Subject: Re: Usage examples for File_CSV?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14890@lists.php.net to get a copy of this message
On Tue, 12 Oct 2004, Peter Bowyer wrote: > Does anyone have example code for File_CSV they can share? -cut- #!/usr/local/bin/php -q <?php require_once('File/CSV.php'); $file = isset($argv[1]) ? $argv[1] : "php://stdin"; $conf = File_CSV::discoverFormat($file); while ($data = File_CSV::read($file, $conf)) { print_r($data); } ?> -cut- -- Mika Tuupola http://www.appelsiini.net/~tuupola/

« previous php.pear.general (#14890) next »