mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 07:45:45 +01:00
22 lines
436 B
Markdown
22 lines
436 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)
|
|
* [IterableType](IterableType.md)
|
|
* [Key](Key.md)
|
|
* [KeySet](KeySet.md)
|
|
* [KeyValue](KeyValue.md)
|