PHP - BUG with filter_var and FILTER_VALIDATE_FLOAT
- by Samuele
I think there is a bug in this filter_var or maybe I'm doing something wrong:
Try this:
$options = array(
'options' => array(
'default' => 3,
'min_range' => 1000.0,
'max_range' => 5000.6,
)
);
$VariableValue2 = 5698;
$VariableValue4 = 5698.2;
…