note 30574 added to function.stripslashes

From: Date: Sat, 22 Mar 2003 16:54:20 +0000
Subject: note 30574 added to function.stripslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-45645@lists.php.net to get a copy of this message
It seems that this works better: $string = str_replace("\\", "\", $string); than this: $string = stripslashes($string); I have tested it with strings like: \, \\, \\\, \', \", \t, ', " And everything works fine! -- http://www.php.net/manual/en/function.stripslashes.php http://master.php.net/manage/user-notes.php?action=edit+30574 http://master.php.net/manage/user-notes.php?action=delete+30574 http://master.php.net/manage/user-notes.php?action=reject+30574

« previous php.notes (#45645) next »