|
|
|
|
Salut.
Voila ce que j'ai trouvé pour toi : $array_reversed = array_reverse ($array_to_reverse);
$size_of_array = count($array_reversed);
for ($z = 0; $z < $size_of_array; $z++){
$actual_index = GetActualIndex($z,$size_of_array);
echo $z." on array_reversed is the same ".$actual_index." on array_to_reverse<BR>\n";
}
function GetActualIndex($current_index, $size_of_array){
$reverse_location = abs($current_index + 1 - $size_of_array);
return $reverse_location;
}
T'as pensé à regarder sur Google avant de poser ta question ?
|
Résultats pour [PHP] array & array_reverse
Résultats pour [PHP] array & array_reverse
Résultats pour [PHP] array & array_reverse
Résultats pour [PHP] array & array_reverse
Résultats pour [PHP] array & array_reverse