Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]sortowanie linkow
arek88
post
Post #1





Grupa: Zarejestrowani
Postów: 95
Pomógł: 0
Dołączył: 8.03.2007

Ostrzeżenie: (30%)
XX---


Witam jak posortować linki ?

bo mam je w formie

Kod
http://rapidshare.com/files/307412159/up.part03.rar
http://rapidshare.com/files/307412039/up.part08.rar
http://rapidshare.com/files/307411926/up.part04.rar
http://rapidshare.com/files/307411750/up.part01.rar


a chcial bym zeby byly tak


Kod
http://rapidshare.com/files/307412159/up.part01.rar
http://rapidshare.com/files/307412039/up.part02.rar
http://rapidshare.com/files/307411926/up.part03.rar
http://rapidshare.com/files/307411750/up.part04.rar


probowalem juz sortow roznych z manuala ale nigdy nie uklada mi sie tak jak chce :/
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kefirek
post
Post #2





Grupa: Zarejestrowani
Postów: 781
Pomógł: 256
Dołączył: 29.06.2008

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


  1. $url = array(
  2. 'http://rapidshare.com/files/307412159/up.part03.rar',
  3. 'http://rapidshare.com/files/307412039/up.part08.rar',
  4. 'http://rapidshare.com/files/307411926/up.part04.rar',
  5. 'http://rapidshare.com/files/307411750/up.part01.rar'
  6. );
  7.  
  8. $tab_url = array();
  9. foreach($url AS $nazwa){
  10. $tab_url[] = array(array('url' => $nazwa),array('part' => substr(strrchr($nazwa, "up"), 3, -4)));
  11. }


I posortuj po kluczu part
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 26.12.2025 - 19:51