Jump to content

count using array


iversonm

Recommended Posts

i have a form where users can submit something and i want it to check to see if there is any vulgar language in the entry they are submitting soo

so $entry was what they submitted and i was thinking something like this

$look = the array of bad words im not going to type;

if((substr_count($entry, $look))>0){ return to page and give warning}else{ submit the data}

does that help alittle?

Link to comment
https://forums.phpfreaks.com/topic/119966-count-using-array/#findComment-618132
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.