iceblox Posted October 3, 2009 Share Posted October 3, 2009 Hi Guys, I am trying to replace a "£" with "£" the script used to work but it doesn't work now does any one have any ideas as it what might be going wrong? It is a problem with the £ sign as if i replace it with something else it works.. $val = str_replace("£","£",$val); Thanks in advance, Phil Quote Link to comment https://forums.phpfreaks.com/topic/176364-str_replace-%C2%A3-issues/ Share on other sites More sharing options...
Daniel0 Posted October 3, 2009 Share Posted October 3, 2009 Any reason why you don't use htmlentities? Quote Link to comment https://forums.phpfreaks.com/topic/176364-str_replace-%C2%A3-issues/#findComment-929563 Share on other sites More sharing options...
iceblox Posted October 3, 2009 Author Share Posted October 3, 2009 Yeah as i dont want all entities to be replaced it < > Thought this would be the only way to do it. Thanks, Phil Quote Link to comment https://forums.phpfreaks.com/topic/176364-str_replace-%C2%A3-issues/#findComment-929568 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.