mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 10:40:24 +02:00
591 B
591 B
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: