note 105294 deleted from function.fgetcsv by danbrown

From: Date: Mon, 08 Aug 2011 14:30:18 +0000
Subject: note 105294 deleted from function.fgetcsv by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182322@lists.php.net to get a copy of this message
Note Submitter: erelsgl at gmail dot com ---- In my previous comment I used a private function that I forgot to paste: <?php function quote_all_array($values) { foreach ($values as $key=>$value) if (is_array($value)) $values[$key] = quote_all_array($value); else $values[$key] = quote_all($value); return $values; } function quote_all($value) { if (is_null($value)) return "NULL"; $value = "'" . mysql_real_escape_string($value) . "'"; return $value; } ?>

« previous php.notes (#182322) next »