amalosoul Posted September 27, 2006 Share Posted September 27, 2006 I have a string which contains \ symbol and I need to eliminate it, but every time I use $string=str_replace("\","",$string); php expects \\ and it issues an error!How can I solve this problem?Thank you very much! Quote Link to comment Share on other sites More sharing options...
Fehnris Posted September 27, 2006 Share Posted September 27, 2006 Look into the function stripslashes()[url=http://us3.php.net/stripslashes]http://us3.php.net/stripslashes[/url] Quote Link to comment Share on other sites More sharing options...
amalosoul Posted September 27, 2006 Author Share Posted September 27, 2006 Thank you very much! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.