Jump to content


Photo

Trying to find the \ symbol


  • Please log in to reply
2 replies to this topic

#1 amalosoul

amalosoul
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 27 September 2006 - 09:27 PM

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!

#2 Fehnris

Fehnris
  • Members
  • PipPipPip
  • Advanced Member
  • 48 posts

Posted 27 September 2006 - 09:30 PM

Look into the function stripslashes()

http://us3.php.net/stripslashes

#3 amalosoul

amalosoul
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 27 September 2006 - 09:51 PM

Thank you very much!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users