deleting elements from array containing specific string keywords : <p>i have an array <strong>$link</strong> which contains some links inside it and i wanna delete all the links which are from sites present in <strong>$Blocklinks</strong>   </p>

<pre><code> $links=array(
'http://ckfht.ca/sultan/files/2016/',
'http://dl1.uploadplus.net/dl2/2016/Sultan.2016/',
'http://www.google.com',
'http://subindomovie.xyz/film/indexof-sultan-720p'
'http://subindomovie.xyz/film/sultan-720-p'
'http://www.liveaccountbook.com/sultan/'


);

$Blocklinks=array(
    'subindomovie.xyz',
    'www.liveaccountbook.com'
);
  /* remove urls containing link from $Blocklinks .. What should i do here??*/
$links=deletelinks($links,$Blocklinks);

/*  output */
print_r($links);

output I want
------
Array
(
    [0] =&gt; http://ckfht.ca/sultan/files/2016/
    [1] =&gt; http://dl1.uploadplus.net/dl2/2016/Sultan.2016/
    [2] =&gt; http://www.google.com
)
</code></pre>
