Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function filter_profanity( $content ) {
- $profanities = array('badword','alsobad','...');
- $content = str_ireplace( $profanities, '{censored}', $content );
- return $content;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement