Advertisement
tzvij

Filter example

Nov 24th, 2013
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. function filter_profanity( $content ) {
  2.     $profanities = array('badword','alsobad','...');
  3.     $content = str_ireplace( $profanities, '{censored}', $content );
  4.     return $content;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement