PHP Tutorials: Swear Word Filter (Part 2)
Filter out уουr select array οf words fοr multi-υѕе using thіѕ handy function!
Filter out уουr select array οf words fοr multi-υѕе using thіѕ handy function!
look up the replace documentation, a user submitted script allows associative array transformation.
‘shit’ => ‘s***t’
also you can use regular expressions to grab the text inbetween the first and last letters and replace it with *
Excellent tuts
thnx
Cheeeeeeeers Alex for this nice tut!
Cheeeeeers Alex for this clever tut!
You can make it so the new thread is place into a variable and just stored for use in the guestbook.
yo m8 if you include in your guestbook wouldnt the box cum up?
but it makes it simpler to keep EVERY word you want to filter in an array
You know, you could just:
str_replace(“shit”,”sh**”,$thread);
=)