2015-10-17 22:51:42 +02:00
|
|
|
# ArrayType
|
|
|
|
|
2017-03-27 14:47:07 +02:00
|
|
|
- `ArrayType()`
|
2015-10-17 22:51:42 +02:00
|
|
|
|
|
|
|
Validates whether the type of an input is array.
|
|
|
|
|
|
|
|
```php
|
|
|
|
v::arrayType()->validate([]); // true
|
|
|
|
v::arrayType()->validate([1, 2, 3]); // true
|
|
|
|
v::arrayType()->validate(new ArrayObject()); // false
|
|
|
|
```
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Arrays
|
|
|
|
- Types
|
|
|
|
|
2017-03-27 22:04:13 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
|
|
|
1.0.0 | Created
|
|
|
|
|
2015-10-17 22:51:42 +02:00
|
|
|
***
|
|
|
|
See also:
|
|
|
|
|
2017-03-28 11:53:14 +02:00
|
|
|
- [ArrayVal](ArrayVal.md)
|
|
|
|
- [BoolType](BoolType.md)
|
|
|
|
- [CallableType](CallableType.md)
|
|
|
|
- [Countable](Countable.md)
|
|
|
|
- [FloatType](FloatType.md)
|
|
|
|
- [IntType](IntType.md)
|
|
|
|
- [IterableType](IterableType.md)
|
|
|
|
- [NullType](NullType.md)
|
|
|
|
- [ObjectType](ObjectType.md)
|
|
|
|
- [ResourceType](ResourceType.md)
|
|
|
|
- [StringType](StringType.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [Subset](Subset.md)
|
2017-03-28 11:53:14 +02:00
|
|
|
- [Type](Type.md)
|
2018-12-11 13:31:50 +01:00
|
|
|
- [Unique](Unique.md)
|