trait IntegerCheck

Validate and range check integers.

Methods

bool
isInt(int $int, int $min = null, int $max = null)

Validate integer, optionally include range check.

Details

at line 39
bool isInt(int $int, int $min = null, int $max = null)

Validate integer, optionally include range check.

Parameters

int $int Input to be tested.
int $min Minimum acceptable value.
int $max Maximum acceptable value.

Return Value

bool True if valid int and within optional range check, false otherwise.