View Single Post

  #3 (permalink)  
Old 07-09-2003
Jennifer Goodie
 
Posts: n/a
Default RE: [PHP] preg_replace - understanding

> $filevalue = str_replace("\\", "/", $filevalue);
>
> it is reversing the "\\" to "//" but not replacing them with just a single
> "/".


I think you need to escape your \ so each \ is \\ so your string should be
"\\\\"


Reply With Quote