php backslash find and replace -


I am trying to do a simple search and am changing it within a string:

< Pre> $ Share_name = str_replace ("", "\", $ share_name); Unfortunately for some reason it replaces all the spaces with "\\" instead of "\" instead of "\". Does anyone know what is going on and how to solve this problem?

I think you mean:

  $ share_name = Str_replace ("", "\\", $ share_name);  

Comments

Popular posts from this blog

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -

session - security issue: php login/logout script + back button -

Eclipse and GWT -