LanceT Posted February 8, 2007 Share Posted February 8, 2007 I have a text field and I want to replace all instances of one string with another. For example if they use the cussword "f*ck" I want to replace it with "fudge" or something like that. Then place it in the mysql database. How would I do this? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 8, 2007 Share Posted February 8, 2007 str_replace() Quote Link to comment Share on other sites More sharing options...
LanceT Posted February 8, 2007 Author Share Posted February 8, 2007 what actually checks to see if the initial string is there? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 8, 2007 Share Posted February 8, 2007 strpos Quote Link to comment Share on other sites More sharing options...
LanceT Posted February 8, 2007 Author Share Posted February 8, 2007 could you help me with some actual code? Thanks. Quote Link to comment 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.