Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

PHP Float

A float (floating-point number) is a number that contains a decimal point or is expressed in exponential form.

In the following example, $x is a float. The PHP var_dump() function will return its data type and value:

Example

$x = 10.365;
var_dump($x);