mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 15:25:45 +01:00
556 B
556 B
Countable
Countable()
Validates if the input is countable, in other words, if you're allowed to use count() function on it.
v::countable()->validate([]); // true
v::countable()->validate(new ArrayObject()); // true
v::countable()->validate('string'); // false
Categorization
- Types
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Created from ArrayVal |
See also: