So, I need to get the cell value of the time in foreach, but since the vector was re-organized with asort () , I do not know how to get this value. If I put $ vector_Distance [0] , it would take the first cell (after it is organized), but cell 0 (Note: I can not re-organize by changing the key of each cell, this key is related to another vector that has cpf related that distance). (Note: It is very urgent).
// foreach com um vetor
foreach ($tecnicos[2] as $tecnico):
// $tecnicos[0] é o vetor onde estão as distâncias, elas estão em ordem crescente
$vetorComDistancia = $tecnicos[0];
//no caso aqui eu pegaria a distância da vez,
$distanciaDaVez = $vetorComDistancia[];