respect-validation/docs/ArrayVal.md
2015-10-24 01:32:07 -02:00

22 lines
428 B
Markdown

# ArrayVal
- `v::arrayVal()`
Validates if the input is an array or if the input can be used as an array
(instance of `ArrayAccess`).
```php
v::arrayVal()->validate([]); // true
v::arrayVal()->validate(new ArrayObject); // true
```
***
See also:
* [ArrayType](ArrayType.md)
* [Countable](Countable.md)
* [Each](Each.md)
* [Iterable](Iterable.md)
* [Key](Key.md)
* [KeySet](KeySet.md)
* [KeyValue](KeyValue.md)