Jump to content

Archived

This topic is now archived and is closed to further replies.

amalosoul

Trying to find the \ symbol

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Look into the function stripslashes()

[url=http://us3.php.net/stripslashes]http://us3.php.net/stripslashes[/url]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.