do an ereg_replace("[^0-9]","",$var) before the calculation, to remove all
non-numeric characters.

kirk

> -----Original Message-----
> From: Peter Houchin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 19, 2001 4:13 AM
> To: Php-General@Lists. Php. Net
> Subject: [PHP] math query
> 
> 
> hiya,
> 
> is there a way to get php to know that $200,000 = $200000 as 
> if you do a
> calculation with it $200,000 it only uses the things befor 
> the comma ..

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to