GUMP::validate_doesnt_contain_list PHP Method

validate_doesnt_contain_list() protected method

OUTPUT: will NOT show the list of values. Usage: '' => 'doesnt_contain_list,value;value;value'
protected validate_doesnt_contain_list ( string $field, array $input, $param = null ) : mixed
$field string
$input array
return mixed
    protected function validate_doesnt_contain_list($field, $input, $param = null)
    {
        $param = trim(strtolower($param));
        $value = trim(strtolower($input[$field]));
        $param = explode(';', $param);
        if (!in_array($value, $param)) {
            // valid, return nothing
            return;
        } else {
            return array('field' => $field, 'value' => $value, 'rule' => __FUNCTION__, 'param' => $param);
        }
    }