Reply to Extracting a numerical value with a comma
Posted by laredotornado@zipmail.com on 03/10/06 23:23
Hi,
I have a string value, "1,250" (one thousand, two hundred and fifty).
Is there a PHP function I can apply to this string that will give me
the value 1250 in a variable? I've tried "intval", but I get a value
of 1 (one), at least in PHP 4.