mirror of
https://github.com/Respect/Validation.git
synced 2024-06-25 00:30:18 +02:00
The current documentation is hosted via GitHub pages rendered by "Couscous". Every time we need a new version of the documentation published we need to manually execute the "couscous". This commit reorganize the documentation to be published to "Read the Docs" because it will also allow us to have documentations per version of the library most importantly provider a search field for the documentation. The documentation will be then published on: https://respect-validation.readthedocs.io/ Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
20 lines
415 B
Markdown
20 lines
415 B
Markdown
# Countable
|
|
|
|
- `v::countable()`
|
|
|
|
Validates if the input is countable, in other words, if you're allowed to use
|
|
[count()](http://php.net/count) function on it.
|
|
|
|
```php
|
|
v::countable()->validate([]); // true
|
|
v::countable()->validate(new ArrayObject()); // true
|
|
v::countable()->validate('string'); // false
|
|
```
|
|
|
|
***
|
|
See also:
|
|
|
|
* [ArrayVal](ArrayVal.md)
|
|
* [Instance](Instance.md)
|
|
* [IterableType](IterableType.md)
|