![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 26 Pomógł: 0 Dołączył: 25.01.2003 Ostrzeżenie: (0%) ![]() ![]() |
Jak posortować taką tablice według wybranej kolumny (type, name, perms, mtime, size)
Kod Array
( [0] => Array ( [type] => DIR [name] => # [perms] => 777 [mtime] => 2004.01.12 18:54:46 [size] => 0 ) [1] => Array ( [type] => FILE [name] => .htaccess [perms] => 644 [mtime] => 2003.12.27 14:47:25 [size] => 78 ) [2] => Array ( [type] => DIR [name] => phpBB [perms] => 755 [mtime] => 2004.01.12 18:54:15 [size] => 0 ) [3] => Array ( [type] => DIR [name] => cgi-bin [perms] => 755 [mtime] => 2004.03.17 14:37:54 [size] => 0 ) [...] => Array ( ... ) ) |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 1 717 Pomógł: 0 Dołączył: 12.06.2002 Skąd: Wolsztyn..... Studia: Zielona Góra Ostrzeżenie: (0%) ![]() ![]() |
Raczej [manual:7911d49d70]usort[/manual:7911d49d70], a nie uksort, bo sortujemy wg wartosci tablicy a nie jej kluczy, pozatym parametry sa takie same, wiec kod jest dobry.
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 12.10.2025 - 19:30 |