double backslash replacement



Hi there!

Could anybody be so kind to tell me how to replace a single backslash with a
double backslash?

I tried using:

$out_string = ereg_replace("\\","\\\\",$in_string);

but... all I got was this error message:

Warning: ereg_replace() REG_EESCAPE on line xx

Best regards and thanks,

F.


.



Relevant Pages