function validar($variables){ foreach($variables AS $variable){ if(!$variable){ return false; } } return true;}