respect-validation/docs/rules/Equals.md

32 lines
544 B
Markdown
Raw Normal View History

2015-01-30 09:40:06 +01:00
# Equals
- `Equals(mixed $compareTo)`
2015-01-30 09:40:06 +01:00
Validates if the input is equal to some value.
2015-01-30 09:40:06 +01:00
```php
v::equals('alganet')->validate('alganet'); // true
2015-01-30 09:40:06 +01:00
```
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
***
2015-01-30 09:40:06 +01:00
See also:
- [Contains](Contains.md)
- [Equivalent](Equivalent.md)
- [Identical](Identical.md)
2018-12-11 13:31:50 +01:00
- [KeyValue](KeyValue.md)
- [Version](Version.md)