On 31 May 2010, at 13:19, Aleksey Zapparov wrote: > Hello, > > Wrong! (c) ;)) > > Zend_Validate_Int valid for integers, floats and string that might be > converted to float or integer: > > $validate = new Zend_Validate_Int(); > var_dump($validate->isValid(1)); // bool(true) > var_dump($validate->isValid(1.0)); // bool(true) > var_dump($validate->isValid('1.0')); // bool(true) > > At least it is with the latest version (1) of framework. >
Zend_Validate_Int will only validate an input that can be considered a whole number. i.e: $validate = new Zend_Validate_Int(); var_dump($validate->isValid(1.5)); will return false. Regards, Rob...