Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.34 KB

File metadata and controls

59 lines (44 loc) · 1.34 KB

ArrayType

  • ArrayType()

Validates whether the type of an input is array.

v::arrayType()->isValid([]); // true
v::arrayType()->isValid([1, 2, 3]); // true
v::arrayType()->isValid(new ArrayObject()); // false

Templates

ArrayType::TEMPLATE_STANDARD

Mode Template
default {{subject}} must be an array
inverted {{subject}} must not be an array

Template placeholders

Placeholder Description
subject The validated input or the custom validator name (if specified).

Categorization

  • Arrays
  • Types

Changelog

Version Description
1.0.0 Created

See also: