I have this arrangement:
$datos = array(
"nombre" => array("Juan Perez","Pablo Manrique","Nancy Peña"),
"direccion" => array("Cra. 45 # 45 -56","Clle. 23 # 12 -19 Sur","Av. 34 # 16 -12"),
"telefono" => array("3456789","3214567","2135423"),
"fecha" => array("23/12/1997","12/10/1980"," 07/06/2000"),
"color" => array("Amarillo","Verde","Rojo"),
"significado" => array("Riqueza y alegría.","")
);
How can I validate that if you have empty spaces, add "No se encuentra el significado."
to the arrangement and then print it?
This is what I tried, but it does not work for me, since the idea is that si color verde y rojo no tienen significado
should put the same meaning for both, but it does not work for me.
if(in_array("",$datos['significado']))
{
array_push($datos['significado'],"No se encuentra el significado.");
}
I would appreciate the interest.