note 54262 deleted from reference.pcre.pattern.syntax by mazzanet

From: Date: Tue, 28 Jun 2005 22:29:09 +0000
Subject: note 54262 deleted from reference.pcre.pattern.syntax by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91105@lists.php.net to get a copy of this message
Note Submitter: bentglasstube at cox dot net ---- I use the following function to escape things that need quotes unless they are already there: <?php function mysql_escape_magic($q) { $ugly = "\\\\'\\\"\\\x1a"; return preg_replace("/\\\\?([$ugly])/", "\\\\$1", $q); } ?> I can't get it to escape 0-bytes, though

« previous php.notes (#91105) next »