Hi,
I have an array of potential expletives to filter out of a string submitted by a user. How would I use the eregi() function with my array?
my variables are as follows:
$comments - User submitted string
$expletives - Array of expletives
I have it set up as:
if (!eregi($expletives,$comments)) {
//code to submit comment;
}else{
echo "Wash your mouth out you little gimp";
}
I have got it to work with a normal string, but not with an array.
Any help would be appreciated
Thanks
Ste