note 26079 rejected from function.stripslashes by betz

From: Date: Thu, 17 Oct 2002 11:30:48 +0000
Subject: note 26079 rejected from function.stripslashes by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-38202@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!

« previous php.notes (#38202) next »