tao-test/app/vendor/respect/validation/docs/rules/Identical.md

19 lines
322 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# Identical
- `v::identical(mixed $value)`
Validates if the input is identical to some value.
```php
v::identical(42)->validate(42); // true
v::identical(42)->validate('42'); // false
```
Message template for this validator includes `{{compareTo}}`.
***
See also:
* [Contains](Contains.md)
* [Equals](Equals.md)