mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 07:45:45 +01:00
496 B
496 B
IterableType
v::iterableType()
Validates if the input is iterable, in other words, if you're able to iterate over it with foreach language construct.
v::iterableType()->validate([]); // true
v::iterableType()->validate(new ArrayObject()); // true
v::iterableType()->validate(new stdClass()); // true
v::iterableType()->validate('string'); // false
See also: