Suppose I have an array where each element of this array is a variable that stores a string inside it.
Example:
error{
[nome] : null;
[sobrenome] : "sobrenome inválido";
[estado] : null; }
I would like the program to identify if all the variables in this array are null , then run another routine.
error{
[nome] : null;
[sobrenome] : null;
[estado] : null; }
I tried to run this way, without success:
if(!empty($error)){
$data["error"] = $error;
}else{
//executa outra rotina
}