Bad Word Filter Documentation

June 23, 2008 - 11:45am PDT
Learn how to use BWF

Docs will be here someday. For now, try this:


<?php
include_once 'BWF/BWF.php';
$string = 'This is a string with some bad fucking words (well, just one really!)';
if (
$bad_words = BWF::check($string)) {
    echo
count($bad_words) . ' bad word(s) were found: ' . implode(', ',$bad_words);
}
?>