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

6, 7, 9, 5, 8, 5, 8, 10, 2, 2,
2, 2, 5, 5, 6, 7, 8, 8, 9, 10,
10, 9, 8, 8, 7, 6, 5, 5, 2, 2,


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ą