|
floatvalGet float value of a variable Description
float floatval(mixed
$value )
Gets the float value of Parameters
Return ValuesThe float value of the given variable. Empty arrays return 0, non-empty arrays return 1. Strings will most likely return 0 although this depends on the leftmost characters of the string. The common rules of float casting apply. Changelog
Examples
Example #1 floatval Example
Example #2 floatval non-numeric leftmost characters Example
|