Reply to Re: back slashes and preg_replace's e modifier
Posted by Oli Filth on 11/06/05 01:26
yawnmoth said the following on 05/11/2005 22:29:
> Can anyone help me understand the following scripts output?:
>
> <?
> echo preg_replace('/.*/e',"sprintf('\\\\\')",'');
> ?>
I would imagine you have the 2nd and 3rd arguments the wrong way round.