PHP doubleval() Function

Facebooktwitterredditpinterestlinkedinmailby feather

PHP doubleval() Function

The doubleval() function in PHP is used to give the float value of a variable. This function is an alias of floatval().

Syntax

Parameter

var(required)– This parameter represents the name of the variable that is to be converted.

Return

This function returns the float value for the specified variable.

Example 1

Output

Example 2

Output

Example 3

Output

Example 4

Output

Facebooktwitterredditpinterestlinkedinmailby feather