Darkmatter5 Posted July 23, 2008 Share Posted July 23, 2008 Is there a function to remove a specified sting of text from a string variable? Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 23, 2008 Share Posted July 23, 2008 str_replace()? Quote Link to comment Share on other sites More sharing options...
discomatt Posted July 23, 2008 Share Posted July 23, 2008 preg_replace() as well Quote Link to comment Share on other sites More sharing options...
Darkmatter5 Posted July 23, 2008 Author Share Posted July 23, 2008 Thanks, it works great! Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 23, 2008 Share Posted July 23, 2008 preg_replace() as well If you're just replacing known text, then you wouldn't want to use regular expressions. Less efficient. 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.