How can I remove instances of words from a string which do not appear in an array?
$myVar = "my sisteralannis is not that blonde, here is a goodplace";
$myWords=array(
array("is","é"),
array("on","no"),
array("that","aquela"),
array("sister","irmã"),
array("my","minha"),
array("myth","mito"),
array("not","não"),
array("he","ele"),
array("good","bom"),
array("place","lugar"),
array("here","aqui"),
array("ace","perito")
);
echo $myVar;
The strings 'sisteralannis' and 'goodplace' do not exists in the $myWords array and should be removed from the string.
Expected Output: my is not that, here is