note 83395 deleted from mysqli.real-escape-string by danbrown

From: Date: Fri, 28 Nov 2008 22:17:54 +0000
Subject: note 83395 deleted from mysqli.real-escape-string by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147319@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 (#147319) next »