OK here is the code codepad here http://codepad.org/ZQz0Kn3R
function processContent($content, $min_count = 2, $exclude_list = array()) { $wordsTmp = ex
The problem is because $filter_array has spaces in it. Either:
$filter_array
$filter_array = array_map(function($el) { return trim($el); }, $filter_array);
Or
foreach ($filter_array as &$element) { $element = trim($element); }