Code: Select all
<?php
$stop_words[] = array("a", "about", "above", "across", "after", "afterwards");
$custom_words[] = array("abouts", "a", "to", "from", "across");
print_r(array_intersect($custom_words,$stop_words));
?>Array ( [0] => Array ( [0] => abouts [1] => a [2] => to [3] => from [4] => across ) )
I want to use array_intesect for bigger arrays.
Please help
Mehnaz