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

7, 5, 10, 7, 9, 3, 3, 9, 6, 6,
3, 3, 5, 6, 6, 7, 7, 9, 9, 10,
10, 9, 9, 7, 7, 6, 6, 5, 3, 3,


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ą