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
Post a Comment