I'm doing some validation now in PHP, and I'm running allot of conditional statements, for example:
if ($this->email->isValid($email)) return false; if ($this->username->isValid($username)) return false;
Is there a nice way to do this? Or do I just run ten If statements like the ones above?
I can't use
switch obviously, but I'm looking for that type of solution..
P.S... I'm using Zend Framework for validation