Does anyone know of free script that takes a text string as input and gives the keywords found in that string as output? TIA
function fetch_keywords() { $keywords = func_get_args(); $text = array_shift($keywords); $keywords = array_map('preg_quote', $keywords); return preg_match_all('~(' . implode('|', $keywords) . ')~i', $text, $matches) ? $matches[1] : false; } PHP: Example: $found_keywords = fetch_keywords($text, 'keyword1', 'keyword 2', 'keyword3', '...'); PHP: