function _recursiveFilter($filter, $value)
    {
        if (is_array($value)) {
            $cleanValues = array();
            foreach ($value as $k => $v) {
                $cleanValues[$k] = $this->_recursiveFilter($filter, $v);
            }
            return $cleanValues;
        } else {
            return call_user_func($filter, $value);
        }
    }
function _recursiveFilter($filter, $value)
    {
        if (is_array($value)) {
            $cleanValues = array();
            foreach ($value as $k => $v) {
                $cleanValues[$k] = $this->_recursiveFilter($filter, $v);
            }
            return $cleanValues;
        } else {
            return call_user_func($filter, $value);
        }
    }
function _recursiveFilter ( $ filter , $ value ) { if ( is_array ( $ value ) ) { $ cleanValues = array ( ) ; foreach ( $ value as $ k => $ v ) { $ cleanValues [ $ k ] = $ this -> _recursiveFilter ( $ filter , $ v ) ; } return $ cleanValues ; } else { return call_user_func ( $ filter , $ value ) ; } }
Recursively apply a filter function

@param     string   $filter    filter to apply
@param     mixed    $value     submitted values
@since     2.0
@access    private
@return    cleaned values
Recursively apply a filter function