Greetings to all, my subject is the following, I have saved a query
$datosMotivos= array();
while($row = mysqli_fetch_array($result)) {
$cod=$row['cod'];
$descripcion=$row['descripcion'];
$motivo=$row['motivo'];
$lugar=$row['lugar'];
$datosMotivos[] = array('cod'=> $cod, 'descripcion'=> $descripcion, 'motivo'=> $motivo, 'lugar'=> $lugar);
}
I want to go through it in the same PHP file for another process I'm doing, what is the proper way to go through that saved array? I am open to your suggestions and advice, thank you for your time.
P.D: Clarifying the topic, for my particular case I need to go through the array outside of the while I show them, since assign values that are inside this while I already know how to do it.