Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

RE: [PHP3] swear word checker From: Richard Heyes (php <email protected>)
Date: 03/31/00

>I need to design a function to check and entry for swear words. I just
have very
>little idea where to start, i have a complicated way of doing it, but i'm
sure there an
>easier way. Any thoughts would be great. Thanks

ereg_replace('pants|poop|kak|etc', '****', $string);
HTH

--
Richard Heyes

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>