# different

Checks for a value, which does not equal the given value

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Toolkit/V.php#L366>

****

```php
V::different($value, $other, $strict = false): bool
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$value` (required) | `mixed` | – | – |
| `$other` (required) | `mixed` | – | – |
| `$strict` | `mixed` | `false` | – |

## Return type

`bool`

## In your code

```php
if (V::different('A', 'B')) {
  echo 'Yay, valid!';
}
```

## In fields

```yaml
fields:
  example:
    label: Example field
    type: text
    validate:
      different: B
```