# same

Checks that the first value equals the second value

****

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

****

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

## Parameters

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

## Return type

`bool`

## In your code

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

## In Panel fields

```yaml
fields:
  example:
    label: Example field
    type: text
    validate:
      equals: A
```