Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 553 Bytes

Countable.md

File metadata and controls

30 lines (21 loc) · 553 Bytes

Countable

  • Countable()

Validates if the input is countable, in other words, if you're allowed to use count() function on it.

v::countable()->isValid([]); // true
v::countable()->isValid(new ArrayObject()); // true
v::countable()->isValid('string'); // false

Categorization

  • Types

Changelog

Version Description
1.0.0 Created from ArrayVal

See also: