Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] sortowanie wyników
motor
post 10.12.2006, 14:26:23
Post #1





Grupa: Zarejestrowani
Postów: 211
Pomógł: 0
Dołączył: 15.12.2005

Ostrzeżenie: (0%)
-----


Mam wynik takiej pętli
  1. <?php
  2. foreach($katalog->grupa as $key => $value){ 
  3. $forma= "" . $value['forma'] ."";
  4. ?>


I problem jak posortować jej wynik w kolejności alfabetycznej ?
Go to the top of the page
+Quote Post
Cysiaczek
post 10.12.2006, 14:39:52
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Posortuj najpierw tablicę $katalog->grupa, bo ze stringiem może być kłopot
sort()

o to chodzi?

Pozdrawiam.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
acztery
post 10.12.2006, 14:42:47
Post #3





Grupa: Zarejestrowani
Postów: 945
Pomógł: 7
Dołączył: 15.03.2005
Skąd: katowice

Ostrzeżenie: (0%)
-----


asort " title="Zobacz w manualu php" target="_manual tez powinno sie przydać
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 6.07.2025 - 22:17