Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] Wielo poziomowe tablice. Wyciągnięcie danych. Jak?
uki0008
post
Post #1





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 19.02.2007

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


Witam, mam taką strukturę danych w tabeli:

  1. array(2) {
  2. ["userItemList"]=>
  3. array(1) {
  4. ["item"]=>
  5. array(5) {
  6. [0]=>
  7. array(17) {
  8. ["itId"]=>
  9. string(10) "3332269943"
  10. ["itName"]=>
  11. string(50) "DELL VOSTRO 3360 i5-3317 6GB 500 BT CAM W8PRO 3NBD"
  12. ["itPrice"]=>
  13. string(1) "0"
  14. ["itBuyNowPrice"]=>
  15. string(4) "2499"
  16. ["itBidCount"]=>
  17. string(1) "0"
  18. ["itTimeLeft"]=>
  19. string(5) "11539"
  20. ["itFotoCount"]=>
  21. string(1) "1"
  22. ["itIsListingThumb"]=>
  23. string(1) "1"
  24. ["itIsBoldTitle"]=>
  25. string(1) "0"
  26. ["itIsBuyNow"]=>
  27. string(1) "1"
  28. ["itCountry"]=>
  29. string(1) "1"
  30. ["itIsEscrow"]=>
  31. string(1) "0"
  32. ["itStartingTime"]=>
  33. string(1) "0"
  34. ["itIsReservedPrice"]=>
  35. string(1) "1"
  36. ["itThumbUrl"]=>
  37. string(63) "http://img13.allegroimg.pl/photos/128x96/33/32/26/99/3332269943"
  38. ["itIsAllegroStandard"]=>
  39. string(1) "1"
  40. ["itHasFreeShipping"]=>
  41. string(1) "0"
  42. }
  43. }
  44. ["userItemCount"]=>
  45. string(2) "67"
  46. }


Tu moje pytanko jak dostać się do konkretnej zmiennej np. (by te info pobierane było do osobnej zmiennej)
  1. ["itName"]=>
  2. string(50) "DELL VOSTRO 3360 i5-3317 6GB 500 BT CAM W8PRO 3NBD"
Go to the top of the page
+Quote Post
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




http://www.php.net/manual/en/language.types.array.php
Lektura obowiązkowa, tu masz wszystko wyjaśnione i podane na przykładach


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
uki0008
post
Post #3





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 19.02.2007

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


Dzięki kolego, pomogło smile.gif
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 Aktualny czas: 20.08.2025 - 14:20