doubleval
alias for floatval
doubleval()
function returns the floating point value of the variable.
This function is an alias for floatval()
.
Returns floating point values of different variables:
<?php $a = "1234.56789" ; echo doubleval ( $a ) . "<br>" ; $b = "1234.56789Hello" ; echo doubleval ( $b ) . "<br>" ; $c = "Hello1234.56789" ; echo doubleval ( $c ) . "<br>" ; ?>
Try it yourself
doubleval ( variable ) ;
parameter | describe |
---|---|
variable | Required. Specifies the variable to check. Must be a scalar type. |