> What is the best way to validate a "money" input?  For example, 3452.67 
> versus 3452..67.

if($value == (string)round((float)$value,2))

or

if(preg_match('/^[0-9]*\.?[0-9]+$/',$value))

appear to work. :) Assuming your value is a string to start with. 

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to