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 = array_map(function($el) { return trim($el); }, $filter_array);
Or
foreach ($filter_array as &$element) {
$element = trim($element);
}
http://codepad.viper-7.com/BrZ9Rm
you will need to pass it through trim:
$filter_array = array_map(function($el) { return trim($el); }, $filter_array);