floatval Get float value of a variable Description floatfloatval mixedvar Returns the float value of var. Var may be any scalar type. You cannot use floatval on arrays or objects. See also intval, strval, settype and Type juggling.