How to get same words between sentences? here are some cords witch from pdo mysql query.
if($q->rowCount()>0){
foreach($q->fetchAll(PDO::FETCH_ASSOC) as $r){
$t=$r['text'];
$e=explode(' ',$t);
//array_intersect();
}
}
//from $r['text'] query get:
//Israel breaks through the Google Glass ceiling
//Google Glass wearers getting used to curious stares
//Airlines start to look through the Google Glass
from these 3 sentences, the same words should be get Google Glass
, but how to write codes in my pdo mysql query case? thanks