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

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

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