You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: doc/book/validators/explode.md
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,24 @@
1
1
# Explode Validator
2
2
3
-
`Zend\Validator\Explode` executes a validator for each item exploded.
3
+
`Zend\Validator\Explode` executes a validator for each item exploded from an
4
+
array.
4
5
5
6
## Supported options
6
7
7
8
The following options are supported for `Zend\Validator\Explode`:
8
9
9
-
-`valueDelimiter`: Defines the delimiter used to explode the value to an array. It defaults to `,`. If the given value is an array, this option isn't used.
10
+
-`valueDelimiter`: Defines the delimiter used to explode values from an array.
11
+
It defaults to `,`. If the given value is an array, this option isn't used.
10
12
-`validator`: Sets the validator that will be executed on each exploded item.
13
+
This may be a validator instance, or a validator service name.
11
14
12
15
## Basic usage
13
16
14
-
To validate if every item in an array is into a certain haystack:
17
+
To validate if every item in an array is in a specified haystack:
0 commit comments