<?php $id_test = -3; $res = filter_var($id_test, FILTER_VALIDATE_INT, array('options' => array('min_range' => 1, 'default' => 2))); var_dump($res);
You have javascript disabled. You will not be able to edit any code.