RE: [PHP] How to prevent varibales from being escaped?
| From: | Tom Walsh | Date: | Mon, 09 Oct 2000 17:21:19 +0000 |
| Subject: | RE: [PHP] How to prevent varibales from being escaped? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-19218@lists.php.net to get a copy of this message | ||
stripslashes($test);
http://www.php.net/manual/function.stripslashes.php
Tom Walsh
http://www.designgeek.com
>
> Hello all,
>
> Suppose I call a PHP script in the following way: script.php3?test=\
>
> The value "\" in the variable I want to use in my program. However,
> when I then do a "print $test;" PHP is kind enough to escape this for
> me and prints \\ when I want it to print just the single backslash.
> Any suggestions as to how to prevent this behaviour from PHP?
>
> Any help is much appreciated :)