public static function array_filter_values($array, $params = [])
    {
        if (is_string($params)) {
            $params = array('with' => $params);
        }

        if (isset($params['with'])) {

            $data = array();

            foreach ($array as $key => $value) {
                if (preg_match('/' . $params['with'] . '/i', $value)) {
                    $data[$key] = $value;
                }
            }

            return $data;
        } else {
            return array_filter($array);
        }
    }