<?php $searchArray = array('settings all','print', 'sum', 'industry'); $text = 'Lorem Ipsum is simply dummy text of the printing and typesettings all industry.'; $text = str_replace('.', '', $text); // and any other characters you dont want $checkArray = explode(' ', $text); var_dump(array_intersect($searchArray, $checkArray));
You have javascript disabled. You will not be able to edit any code.