Waq158 Posted July 1, 2010 Share Posted July 1, 2010 Just want how I can check if a field in a table already contains "RE:" so it wont keep adding RE: everytims the person uses the reply function. Thanks. Link to comment https://forums.phpfreaks.com/topic/206413-adding-re-to-replies/ Share on other sites More sharing options...
freelance84 Posted July 1, 2010 Share Posted July 1, 2010 If it needs at least one"RE:" you could add one on to the string after all of them have been removed $new_string = "RE: ".str_replace("RE:", "", $string); Dunno if that will work straight off, it may need breaking into two parts Link to comment https://forums.phpfreaks.com/topic/206413-adding-re-to-replies/#findComment-1079797 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.