SyntaxFix
Write A Post
Hire A Developer
Questions
You want the non-locale-aware floatval function:
floatval
float floatval ( mixed $var ) - Gets the float value of a string.
Example:
$string = '122.34343The'; $float = floatval($string); echo $float; // 122.34343