mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 00:32:16 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
32 lines
544 B
Markdown
32 lines
544 B
Markdown
# Equals
|
|
|
|
- `Equals(mixed $compareTo)`
|
|
|
|
Validates if the input is equal to some value.
|
|
|
|
```php
|
|
v::equals('alganet')->validate('alganet'); // true
|
|
```
|
|
|
|
Message template for this validator includes `{{compareTo}}`.
|
|
|
|
## Categorization
|
|
|
|
- Comparisons
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
1.0.0 | Removed identical checking (see [Identical](Identical.md))
|
|
0.3.9 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [Contains](Contains.md)
|
|
- [Equivalent](Equivalent.md)
|
|
- [Identical](Identical.md)
|
|
- [KeyValue](KeyValue.md)
|
|
- [Version](Version.md)
|