Definition and usage FILTER_VALIDATE_FLOAT filter validates values as floating point numbers. Name: "float" ID-number: 259 Example <?php$var=12.3;var_dump(filter_var($var, FILTER_VALIDATE_FLOAT));?> The output of the code looks like this: float(12.3)