Hi friends am trying to compare n sentences in an array and get the common words which are present in more than one sentence. Here is sample
$cars=("hello how","hello when","when you came",........,n sentences);
array_intersect is used to compare 2 or 3 arrays which have exactly common words in all the three can anyone help me with these