It's those bloody arrays again.

    Date: 08/01/05 (PHP Community)    Keywords: no keywords

    I'm trying to write some sort of 'bad word' detection thing for a commenting system. I figured the best way to do it was to have a table of bad words.. when the comment is sent the bad words are placed into one array and the comment is split into another array ($CommentWords = explode(" ", $comments);)

    How do I check the $CommentWords against $BadWords and then basically tell the user to bugger off if one or more words in $CommentWords is in $BadWords?

    I've said it countless times: arrays are just not my strong point. ;)

    RESOLVED thanks a bundle :D

    Source: http://www.livejournal.com/community/php/329215.html

« Downfalls of PHP... || hmm the logic escapes me »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home