Positive

  • Positive()

Validates whether the input is a positive number.

v::positive()->validate(1); // true
v::positive()->validate(0); // false
v::positive()->validate(-15); // false

Categorization

  • Math
  • Numbers

Changelog

Version Description
2.0.0 Does not validate non-numeric values
0.3.9 Created

See also: