I am attempting to use Zend_Filter_Input to validate data coming from a csv.
$filters = array(0 => array('StringTrim', 'StripTags'), 1 => array('StringTrim', 'StripTags'), 3 => array('StringTrim', 'StripTags')); $validators = array(0 => array('Int', 'NotEmpty'), 1 => array('Int'), 3 => array('Int')); $input = new Zend_Filter_Input($filters, $validators); $this->_input->setData($data); $data is equal to a row from the csv. Here is my problem: For every record in the csv, field [0] is not validating correctly. It appears as though the validator is seeing the field as empty. Errors received: '' does not appear to be an integer Value is required and can't be empty For that particular record, all three fields being validated have data in them and are valid integers. When I dump the Unescaped values that come back from $input, the values from the csv are displayed. -- View this message in context: http://www.nabble.com/Zend-Filter-Input%2C-first-element-from-a-csv-not-validating-correctly-tp22375816p22375816.html Sent from the Zend Framework mailing list archive at Nabble.com.