public function int(int $min = null, int $max = null)   // inclusive max and min
    {
        $array = [];
        return $this->closure_array_walk(function ($key) use (&$array, $min, $max) {
            if (($key = (int)$key) === false) {
                return $array[] = false;
            }
            if ($max !== null) {
                $key = ($key <= $max ? $key : false);
            }
            if ($min !== null) {
                $key = ($key >= $min ? $key : false);
            }
            return $array[] = $key;
        })($array);
    }
public function int(int $min = null, int $max = null)   // inclusive max and min
    {
        $array = [];
        return $this->closure_array_walk(function ($key) use (&$array, $min, $max) {
            if (($key = (int)$key) === false) {
                return $array[] = false;
            }
            if ($max !== null) {
                $key = ($key <= $max ? $key : false);
            }
            if ($min !== null) {
                $key = ($key >= $min ? $key : false);
            }
            return $array[] = $key;
        })($array);
    }
public function int ( int $ min = null , int $ max = null ) // inclusive max and min { $ array = [ ] ; return $ this -> closure_array_walk ( function ( $ key ) use ( & $ array , $ min , $ max ) { if ( ( $ key = ( int ) $ key ) === false ) { return $ array [ ] = false ; } if ( $ max !== null ) { $ key = ( $ key <= $ max ? $ key : false ) ; } if ( $ min !== null ) { $ key = ( $ key >= $ min ? $ key : false ) ; } return $ array [ ] = $ key ; } ) ( $ array ) ; }
Returns found integers between the given min and max if set. If no max
or min is set, just validate integers.
@param int|null $min
@param int|null $max
@return array|bool|mixed
Returns found integers between the given min and max if set . If no max or min is set just validate integers .