Gubbins Posted August 23, 2009 Share Posted August 23, 2009 Could anyone please help with this: In my replace file, for forum posts this does not seem to work:- $txt = str_replace(''',"'",$txt); i.e if i put the word don't or it's i get don't or it's displayed on the page. Link to comment https://forums.phpfreaks.com/topic/171515-str_replace/ Share on other sites More sharing options...
papaface Posted August 23, 2009 Share Posted August 23, 2009 I'm pretty sure ' is ' and not ' unless they're equal. Link to comment https://forums.phpfreaks.com/topic/171515-str_replace/#findComment-904465 Share on other sites More sharing options...
Gubbins Posted August 23, 2009 Author Share Posted August 23, 2009 Nope still not working! Link to comment https://forums.phpfreaks.com/topic/171515-str_replace/#findComment-904564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.