respect-validation/docs/rules/Identical.md

30 lines
457 B
Markdown
Raw Permalink Normal View History

2015-10-13 18:27:49 +02:00
# Identical
- `Identical(mixed $value)`
2015-10-13 18:27:49 +02:00
Validates if the input is identical to some value.
```php
v::identical(42)->validate(42); // true
v::identical(42)->validate('42'); // false
2015-10-13 18:27:49 +02:00
```
Message template for this validator includes `{{compareTo}}`.
## Categorization
- Comparisons
## Changelog
Version | Description
--------|-------------
1.0.0 | Created
2015-10-13 18:27:49 +02:00
***
See also:
- [Contains](Contains.md)
- [Equals](Equals.md)
2018-12-11 13:31:50 +01:00
- [Equivalent](Equivalent.md)