1# EndsWith 2 3- `v::endsWith(mixed $value)` 4- `v::endsWith(mixed $value, boolean $identical = false)` 5 6This validator is similar to `v::contains()`, but validates 7only if the value is at the end of the input. 8 9For strings: 10 11```php 12v::endsWith('ipsum')->validate('lorem ipsum'); // true 13``` 14 15For arrays: 16 17```php 18v::endsWith('ipsum')->validate(['lorem', 'ipsum']); // true 19``` 20 21A second parameter may be passed for identical comparison instead 22of equal comparison. 23 24Message template for this validator includes `{{endValue}}`. 25 26*** 27See also: 28 29 * [StartsWith](StartsWith.md) 30 * [Contains](Contains.md) 31 * [In](In.md) 32