Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 500 Bytes

Countable.md

File metadata and controls

25 lines (18 loc) · 500 Bytes

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

Changelog

Version Description
1.0.0 Created from ArrayVal

See also: