parsing text to double in php code example Example: string to double php $floatValue = floatval("1.0");