note 21169 added to function.ereg-replace

From: Date: Wed, 01 May 2002 19:47:27 +0000
Subject: note 21169 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-30060@lists.php.net to get a copy of this message
When moving data from Oracle to Postgres, I was having trouble with values containing nulls from the Oracle SELECTS (which causes Postgres fits during an insert i.e. 'Unterminated quoted string'). This solved the problem: $output=preg_replace('[\x00]','',$input); -- http://www.php.net/manual/en/function.ereg-replace.php http://master.php.net/manage/user-notes.php?action=edit+21169 http://master.php.net/manage/user-notes.php?action=delete+21169 http://master.php.net/manage/user-notes.php?action=reject+21169

« previous php.notes (#30060) next »