I have 2 arrays and want to see if $responseresult['Url'] contains $bannedkeys and do something about it? So far I got this: foreach ($allresponseresults as $responseresult){ if(strpos($responseresult['Url'], $bannedkeys[0]) !== false) { } else { } PHP: As you can see, I had to define $bannedkeys[0] with a 0 index.. How would I code it so It checks all indexes of $bannedkeys? I tried another foreach loop and somehow cant get it to work. Please help Thanks!
double check on the parameter i may be wrong, but i think the array haystack would be the second parameter
hmm.. $bannedkeys is an array { $bannedkeys = array( "test.com", "google.com", ); $responseresult is an array too.. So I want it to check if there are banned keys (domain) in $responseresult['Url'] So it will loop and check if each url contains any banned keys.
No not count.. I want to do something if it finds that a certain $responseresult['Url'] contains a banned key.
Willing to pay $5 for someone to help script this. http://forums.digitalpoint.com/showthread.php?t=2209021#post16388185