Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Problem z duplikatami w tablicy
northwest
post 9.07.2012, 23:54:58
Post #1





Grupa: Zarejestrowani
Postów: 788
Pomógł: 1
Dołączył: 17.09.2004

Ostrzeżenie: (10%)
X----


Witam serdecznie,
mam tablicę $daneuserów która zawiera wartości:
  1. (
  2. [0] => Array
  3. (
  4. [godzina] => 8:00
  5. [link] => klient.html?marka=36&modela=60&step=2&data=2012/07/16&time=8:00
  6. )
  7.  
  8. [1] => Array
  9. (
  10. [godzina] => 8:00
  11. [link] => klient.html?marka=36&modela=60&step=2&data=2012/07/16&time=8:00
  12. )
  13.  
  14. [2] => Array
  15. (
  16. [godzina] => 8:00
  17. [link] => klient.html?marka=36&modela=60&step=2&data=2012/07/16&time=8:00
  18. )
  19.  
  20. [3] => Array
  21. (
  22. [godzina] => 8:00
  23. [link] => klient.html?marka=36&modela=60&step=2&data=2012/07/16&time=8:00
  24. )
  25.  
  26. [4] => Array
  27. (
  28. [godzina] => 8:00
  29. [link] => klient.html?marka=36&modela=60&step=2&data=2012/07/16&time=8:00
  30. )
  31.  
  32. [5] => Array
  33. (
  34. [godzina] => 8:00
  35. [link] => klient.html?marka=36&modela=60&step=2&data=2012/07/16&time=8:00
  36. )
  37. )


i tak do 1000... sad.gif Macie może pomysł jak to w PHP przeczyścić z duplikatów?


Z góry dziękuje za pomoc,
Northwest
Go to the top of the page
+Quote Post
CuteOne
post 10.07.2012, 02:57:57
Post #2





Grupa: Zarejestrowani
Postów: 2 958
Pomógł: 574
Dołączył: 23.09.2008
Skąd: wiesz, że tu jestem?

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


http://php.net/manual/en/function.array-unique.php (zobacz komentarze)

Ten post edytował CuteOne 10.07.2012, 02:58:45
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: 22.07.2025 - 12:02