Studyon Minte9.com
ZF 1.0




Overview



#controller
<?php
...
$validator = new Zend_Validate_EmailAddress();
if ( ! $validator->isValid('aaa@')) {
	echo current($validator->getMessages());

	// display: 'aaa@' is no valid email address in the basic format local-part@hostname
}


http://framework.zend.com/manual/en/zend.validate.introduction.html
http://framework.zend.com/manual/en/zend.validate.set.html