function:floatval ( varname );return type:floatcontent:ใช้แปลง ตัวแปรที่กำหนด ให้เป็น floatexample:$num = "500.00bath"; echo gettype ( $num );