Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 507 Bytes

Numeric_rule.md

File metadata and controls

27 lines (17 loc) · 507 Bytes

Numeric

  • numeric()
  • Numeric_rule()

Validates the input value is a valid numeric value.

use AJD_validation\AJD_validation as v;

$v = new v;

$v->numeric()->check('numeric_field', '1a'); // will put error on error bag
$v->getValidator()->numeric()->validate('1a'); // false

$v->numeric()->check('numeric_field', '1'); // validation passes
$v->getValidator()->numeric()->validate('1'); // true

Changelog

Version Description
0.1.0 Initial Release