mattm1712 Posted May 15, 2014 Share Posted May 15, 2014 hi im having trouble removing ' from strings so say $name = "D'vion"; $newname = str_replace("'","",$name); but this just returns the same. thanks matt Link to comment https://forums.phpfreaks.com/topic/288524-removing-fromm-string/ Share on other sites More sharing options...
Jacques1 Posted May 15, 2014 Share Posted May 15, 2014 No, it doesn't. Either you're looking at the wrong variable, or the single quotes you're trying to replace aren't actually single quotes. Link to comment https://forums.phpfreaks.com/topic/288524-removing-fromm-string/#findComment-1479624 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.