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