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