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