Carenburg Posted July 26, 2013 Share Posted July 26, 2013 Hey all, this is my first post here. I am not new to php (but I am newer to the OO aspect of php). I am working on a script that will find certain words or phrases in large text files. I guess the best thing to compare it to would be a bad word filter. What would you suggest to do this. Thanks muchly Carenburg Link to comment https://forums.phpfreaks.com/topic/280526-finding-and-replacing-keywords-in-large-bodys-of-text/ Share on other sites More sharing options...
PravinS Posted July 26, 2013 Share Posted July 26, 2013 Use str_replace() function, you can also pass search and replace array http://php.net/manual/en/function.str-replace.php Link to comment https://forums.phpfreaks.com/topic/280526-finding-and-replacing-keywords-in-large-bodys-of-text/#findComment-1442235 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.