transform price string to number php R$ code example Example: string to float php $floatValue = floatval("1.0");