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