note 9006 deleted from function.fgetcsv by irc-html

From: Date: Thu, 03 Jan 2002 02:26:37 +0000
Subject: note 9006 deleted from function.fgetcsv by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24339@lists.php.net to get a copy of this message
In this ex. I will write in a text file using "|" as delimiter between each field and then I will use fgetcsv to read it: fwrite($fp,$cod."|"); fwrite($fp,$name."|"); fwrite($fp,$country."\n"); You will have a file like this one: 12|Mark Brown|BRAZIL 22|Half Ever|USA to read the file use: $fotoinfo=fgetcsv($fp,1000,"|"); list($cod,$name,$country)= $fotoinfo; echo "$cod\t"; echo "$name\t"; echo "$country\n"; PHP will display: 12 Mark Brown BRAZIL

« previous php.notes (#24339) next »