respect-validation/docs/rules/ArrayType.md

41 lines
741 B
Markdown
Raw Normal View History

2015-10-17 22:51:42 +02:00
# ArrayType
- `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
```
## Categorization
- Arrays
- Types
## Changelog
Version | Description
--------|-------------
1.0.0 | Created
2015-10-17 22:51:42 +02:00
***
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)
2018-12-11 13:31:50 +01:00
- [Subset](Subset.md)
- [Type](Type.md)
2018-12-11 13:31:50 +01:00
- [Unique](Unique.md)