Przykład kodu źródłowego zawierającego sortowanie wygenerowanych liczb:

5, 3, 8, 1, 3, 8, 9, 2, 1, 1,
1, 1, 1, 2, 3, 3, 5, 8, 8, 9,
9, 8, 8, 5, 3, 3, 2, 1, 1, 1,


Array ( [marka] => FIAT [kolor] => white [przebieg] => 7000 [lata] => 2 )
Sortowanie:
Array ( [lata] => 2 [przebieg] => 7000 [marka] => FIAT [kolor] => white )
Sortowanie wg. klucza:
Array ( [kolor] => white [lata] => 2 [marka] => FIAT [przebieg] => 7000 )

Powrót do lekcji.


Powrót na stronę główną