note 26079 added to function.stripslashes

From: Date: Thu, 17 Oct 2002 06:57:21 +0000
Subject: note 26079 added to function.stripslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-38196@lists.php.net to get a copy of this message
Stripslashes doesn't seem to be symmetric to addslashes. Addslashes adds slashes to ',",/, 0x0 Stripslashes removes slashes from those and more (everything preceded by a \??)! Example: echo stripslashes( 'header( \"_newurl_\n\" );' ); Should give header( "_newurl_\n" ); but it gives header( "_newurl_n" ); instead! -- http://www.php.net/manual/en/function.stripslashes.php http://master.php.net/manage/user-notes.php?action=edit+26079 http://master.php.net/manage/user-notes.php?action=delete+26079 http://master.php.net/manage/user-notes.php?action=reject+26079

« previous php.notes (#38196) next »