Q:

How to filter Array with another array

I have an array  that I need to filter. I'd like to filter with an array of words to in order to have an new array without that 'words' 
Array
(
[0] => Array
    (
        [occurence] => 17
        [word] => sampleword
    )

[1] => Array
    (
        [occurence] => 14
        [word] => sampleword1
    )

[2] => Array
    (
        [occurence] => 14
        [word] => sampleword2
    )
[3] => Array
    (
        [occurence] => 14
        [word] => sampleword3
    )
)

i have one function which works pretty well but only for one 'word'
function words_not_included( $w ) {
   $not_included      = 'sampleword1';
   return $w['word'] != $not_included;
}

then i applied
$new_array = array_filter( $old_array, "words_not_included" );

So it works with one word
How to have an array of forbidden 'words' like:
$forbidden_words = array('sampleword1','sampleword3'); 

and then filter with them and output an new array like this :
Array
(
[0] => Array
    (
        [occurence] => 17
        [word] => sampleword
    )

[1] => Array
    (
        [occurence] => 14
        [word] => sampleword2
    )

)

A:

With the existing code use in_array:
function words_not_included( $w ) {
   $not_included = array('sampleword1', 'sampleword3');
   return !in_array($w['word'], $not_included);
}

