mirror of
https://github.com/Respect/Validation.git
synced 2024-06-04 23:02:16 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
41 lines
741 B
Markdown
41 lines
741 B
Markdown
# ArrayType
|
|
|
|
- `ArrayType()`
|
|
|
|
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
|
|
```
|
|
|
|
## Categorization
|
|
|
|
- Arrays
|
|
- Types
|
|
|
|
## Changelog
|
|
|
|
Version | Description
|
|
--------|-------------
|
|
1.0.0 | Created
|
|
|
|
***
|
|
See also:
|
|
|
|
- [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)
|
|
- [Subset](Subset.md)
|
|
- [Type](Type.md)
|
|
- [Unique](Unique.md)
|