respect-validation/docs/Type.md
2017-03-28 11:53:14 +02:00

741 B

Type

  • 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

Changelog

Version Description
0.8.0 Created

See also: