Re: any way to get backslashes through in preg_replace?
| From: | Christian Reiniger | Date: | Wed, 09 May 2001 13:21:51 +0000 |
| Subject: | Re: any way to get backslashes through in preg_replace? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52098@lists.php.net to get a copy of this message | ||
On Wednesday 09 May 2001 01:06, Michael Geary wrote:
> $replaceIt = array("\\341","\\116");
> By the way, when I pass:
>
> $replaceIt = array("\\\\341","\\\\116");
>
> I get:
>
> "this is the \\341 and this is the \\116"
Try 3 backslashes and try using single quotes
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck for the rulers that men do not think.
- Adolf Hitler
Note: This quote is not meant to be offensive, it is meant to make
people think, to let them learn from history (which especially
includes learning from the unpleasant facts). I'm sure that discussing
this quote in school would decrease the number of "new" nazis appearing
everywhere, if only by a little bit. That's why I will not remove it.