PHP FILTER_VALIDATE_FLOAT Filter
Complete PHP Filter Reference
Definition and Usage
The FILTER_VALIDATE_INT filter validates value as a float number.
- Name: "float"
- ID-number: 259
Example
<?php
$var=12.3;
var_dump(filter_var($var, FILTER_VALIDATE_FLOAT));
?>
|
The output of the code will be:
Complete PHP Filter Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|