Why am I getting undefined. That is most silly code I've posted but I have no PHP programmer to ask, so here I am.
$resultados = ["nome" => "magalu", "idade" => 200];
echo $resultados[0]["idade"];
Let's go
$resultados = ["nome" => "diego", "idade" => 200];
I am creating a variable with index 0 equal to an array that has two keys "nome", "idade".
echo $resultados[0]["idade"];
Now I am accessing that index and displaying the value of the "idade" key.