A simple PHP tutorial which blocks out whatever word that you would like it to block out.

text.htm
Code:
<html>
<head>
<title>Simple Badword Filter</title>
</head>
<body>
<font face='verdana' size='2'>
<h1>Simple Badword Filter</h1>
<form method='post' action='testit.php'>
<textarea name='text' rows='10' cols='20'></textarea>
<input type='submit' value='Test It'>
</form>
</font>
</body>
</html>
testit.php
Code:
<?php
/* Check.php */

function check() /* Establishes the function check */
{
global $text; /* Gets All Variables */

//To Add New Words, Just Copy One Line From Below And Paste It Below The Third Line. Just Replace the first word in quotes with the word you would like, and the second word in quotes to what you would like to change it to.//

$text = str_replace("hey","****",$text); /* Replaces the word "hey" into "****" */
$text = str_replace("pie","****",$text);
$text = str_replace("php","***",$text);

echo $text;

}

return check(); /* Returns the function check() */

?>
Example Here

Brought To You By PHPMini