On 2011-12-02, "Dmitri Snytkine" <dsnytk...@ultralogistics.com> wrote:
> IT would probably be even more convenient to just say
> if( (new Validator())->isValid($value) ){
>
> }
>
> No reason to just temporaraly assign $validator.

Except that you can't get the validation error messages if validation
fails.  That was the point of assigning -- error messages are stateful
properties of the validator.


-- 
Matthew Weier O'Phinney
Project Lead            | matt...@zend.com
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to