note 75630 deleted from function.fputcsv by bjori

From: Date: Sun, 10 Jun 2007 15:18:01 +0000
Subject: note 75630 deleted from function.fputcsv by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127350@lists.php.net to get a copy of this message
Note Submitter: William dot Finn at riverbed dot com Reason: useless ---- rauxbenoit at free dot fr fputcsv replacement will produce bad output if the delimiter or enclose is anything that can be in a number and your data includes numbers. (like delimiter=".", data includes 1.4) instead of <?php if (! is_numeric()) ?> use <?php if (strpos($strCell, $strDelimiter) !== FALSE || strpos($strCell, $strEnclose) !== FALSE) { ... } ?>

« previous php.notes (#127350) next »