Type

  • v::type(string $type)

Validates the type of input.

v::type('bool')->validate(true); // true
v::type('callable')->validate(function (){}); // true
v::type('object')->validate(new stdClass()); // true

See also: