V::different()
Checks for a value, which does not equal the given value
V::different($value, $other, $strict = false): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$value |
– | ||
$other |
– | ||
$strict |
false |
Return type
bool
In your code
if(V::different('A', 'B')) {
echo 'Yay, valid!';
}
In fields
fields:
example:
label: Example field
type: text
validate:
different: B