respect-validation/docs/IterableType.md
2017-03-28 11:53:14 +02:00

631 B

IterableType

  • 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

Changelog

Version Description
1.0.8 Renamed from Iterable to IterableType
1.0.0 Created as Iterable

See also: