mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
444 B
444 B
Equals
v::equals(mixed $value)v::equals(mixed $value, boolean $identical = false)
Validates if the input is equal some value.
v::equals('alganet')->validate('alganet'); //true
Identical validation (===) is possible:
v::equals(10)->validate('10'); //true
v::equals(10, true)->validate('10'); //false
Message template for this validator includes {{compareTo}}.
See also: