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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -