| Autre solution | | De Léa Gris - Dimanche 30 Décembre 2001 à 19:30
<?
function inverser( &tableau ) {
$s = sizeof($tableau,1);
for ({$i = 0 ; $j = $s - 1; }; $i < $j ; { $i++; $j--; } )
{
$t = $tableau[$i];
$tableau[$i] = $tableau[$j];
$tableau[$j] = $t;
}
}
?>
|
|