Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP FILTER_VALIDATE_FLOAT Filter

PHP FILTER_VALIDATE_FLOAT Filter


PHP Filter Reference Manual Complete PHP Filter Reference Manual


Definition and Usage

The FILTER_VALIDATE_FLOAT filter validates a value as a float.


Example

The output of the code is shown below:

float(12.3)


PHP Filter Reference Manual Complete PHP Filter Reference Manual