Hightlight or Censor Words in PHP
By Darren W. Hedlund2005-06-20
Hightlight or Censor Words in PHP
This tutorial will show you how to load a flat file and parse text to highlight or even censor out a word.
First step is to create an empty folder and create two text files. The first one rename it to badwords.txt, and the second as index.php
Open the badwords.txt file and enter in:
dog
fleas
Next open the index.php file, and past the following information
<?php |
Access the index.php through your localhost address, or web page, abd you should see the following:
My dog has fleas....
Tutorial Pages:
» Hightlight or Censor Words in PHP
