mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
415 B
415 B
Countable
v::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
See also: