vendredi 29 décembre 2017

Multiple handling functions in if statement

I was wondering if multiple handling functions in an if statement is bad practice or hated?
Example:
if(empty($employee) OR empty($project) OR empty($streetName) OR empty($zipCode) OR empty($city)){ $error = true; }

Aucun commentaire:

Enregistrer un commentaire