note 83394 deleted from function.mysqli-real-escape-string by felipe

From: Date: Fri, 23 May 2008 23:19:41 +0000
Subject: note 83394 deleted from function.mysqli-real-escape-string by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139661@lists.php.net to get a copy of this message
Note Submitter: anders jenbo pc dk ---- heres a preg function to escape % and _ as ereg isn't unicode safe and i belive it will also be removed from php6 function search_escape($str) { return preg_replace('/([%_])/u', '\\\\$1', $str); }

« previous php.notes (#139661) next »