There are two arrays.
$array1 = ["apple", "banana", "grape", "watermelon", "taro", "coffee", "green tea", "tomato", "cabbage"];
$array2 = ["there is apple", "there is banana", "there is lemon", "there is melon", "there is cucumber"];
result I want is
$array2 = ["there is apple", "there is banana"];
Logic is check array2 contains any value from array1.
I can do it with a string and one array
$string = "apple";
$array = ["there is apple", "there is banana", "there is lemon", "there is melon", "there is cucumber"];
with two arrays quite hard. Any advise please. Need to loop twice?