Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 415 Bytes

File metadata and controls

19 lines (14 loc) · 415 Bytes

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: