Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 346 Bytes

File metadata and controls

21 lines (15 loc) · 346 Bytes

NoneOf

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

Validates if NONE of the given validators validate:

v::noneOf(
    v::intVal(),
    v::floatVal()
)->validate('foo'); // true

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


See also: