![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 65 Pomógł: 0 Dołączył: 2.06.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
potrzebuję posortować i przeszukać kilka krótkich tabelek, ale nie chciałbym w tym celu nawiązywać połączenia z bazą danych. Są jakieś funkcje w php działające jak te dwie z SQLa? Szukałem w manualu ale nic nie znalazłem. Czy pozostaje tylko ręczne napisanie tych funkcji? Pozdrawiam. |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 744 Pomógł: 118 Dołączył: 14.02.2009 Skąd: poziome Ostrzeżenie: (0%) ![]() ![]() |
Niektore funkcje sortujace, zaleznie co i jak ma byc:
ORDER BY= arsort — Sort an array in reverse order and maintain index association asort — Sort an array and maintain index association key — Fetch a key from an array krsort — Sort an array by key in reverse order ksort — Sort an array by key natcasesort — Sort an array using a case insensitive "natural order" algorithm natsort — Sort an array using a "natural order" algorithm reset — Set the internal pointer of an array to its first element rsort — Sort an array in reverse order shuffle — Shuffle an array sort — Sort an array uasort — Sort an array with a user-defined comparison function and maintain index association uksort — Sort an array by keys using a user-defined comparison function usort — Sort an array by values using a user-defined comparison function SELECT = petla (while, for, foreach...) WHERE = IF.. SWITCH... |
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.10.2025 - 17:56 |