Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 335 Bytes

NoneOf.md

File metadata and controls

20 lines (14 loc) · 335 Bytes

NoneOf

  • v::noneOf(v $v1, v $v2, v $v3...)

Validates if NONE of the given validators validate:

v::noneOf(
    v::int(),
    v::float()
)->validate('foo'); //true

In the sample above, 'foo' isn't a integer nor a float, so noneOf returns true.

See also: