Wednesday, August 9, 2017

Explain about PHP Float.

PHP Float

A float (floating point number) is a number with a decimal point or a number in exponential form.
In the following example $x is a float. The PHP var_dump() function returns the data type and value:

Example

<?php
$x = 10.365;
var_dump($x);
?>