note 87080 deleted from function.fputcsv by danbrown

From: Date: Tue, 18 Nov 2008 21:40:43 +0000
Subject: note 87080 deleted from function.fputcsv by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146670@lists.php.net to get a copy of this message
Note Submitter: nate at example dot com ---- Beware, this function is BROKEN! The escape character within a field is supposed to be a doubling of the enclosure character, yet sometimes php sees a backslash as the escape sequence. Thanks to broken php implementation, this function cannot be for serious business. <? // proper output is: "hello""there" // (which php gets correct) fputcsv($fh, array('hello"there')); // proper output is: "hello\""there" // ( php fails, by giving: "hello\"there" ) fputcsv($fh, array('hello\"there')); ?>

« previous php.notes (#146670) next »