note 51141 deleted from function.fgetcsv by nlopess

From: Date: Sun, 01 May 2005 08:24:17 +0000
Subject: note 51141 deleted from function.fgetcsv by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88822@lists.php.net to get a copy of this message
Note Submitter: basslines at gmail dot com ---- fgetcsv does not work properly if a field is equal to the escape character. For example: the following CSV: "Path","Name","Age" "\","Bob","12" "None","Billy","24" would return" [0] => Path [1] => Name [2] => Age [0] => \",Bob" [1] => 12 [0] => None [1] => Billy [2] => 24 So far the only way I've found to get around this it by pre-processing your CSV file to either remove them or double slash them, which would give you double slashes in your results.

« previous php.notes (#88822) next »