This is a small idea, but wouldn't a toArray() be pertinent for the
Zend_Filter_Input class, especially since Zend_Filter_Input destroys its
source? I very much appreciate the filtering methods available through
Zend_Filter_Input, but sometimes I find that an array() structure would be
convenient (for looping, especially).

public function toArray()
{
    return $this->_source;
}

use case:

foreach($zendFilter->toArray() as $key) {
    echo $zendFilter->getAlnum($key);
}

Thanks, gonyuu
-- 
View this message in context: 
http://www.nabble.com/Zend_Filter_Input%2C-toArray%28%29-method-tf2414124s16154.html#a6729283
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to