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; }
if(empty($employee) OR empty($project) OR empty($streetName) OR empty($zipCode) OR empty($city)){ $error = true; }
Aucun commentaire:
Enregistrer un commentaire