Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pobranie indeksów z tablicy
preso
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 15.02.2015

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


Mam taki array:

  1. array(2) {
  2. [6]=>
  3. array(4) {
  4. ["datas"]=>
  5. array(1) {
  6. [1]=>
  7. array(1) {
  8. [0]=>
  9. array(9) {
  10. ["id_customization"]=>
  11. string(1) "6"
  12. ["id_address_delivery"]=>
  13. string(1) "0"
  14. ["id_product"]=>
  15. string(1) "3"
  16. ["id_customization_field"]=>
  17. string(1) "1"
  18. ["id_product_attribute"]=>
  19. string(1) "0"
  20. ["type"]=>
  21. string(1) "1"
  22. ["index"]=>
  23. string(1) "1"
  24. ["value"]=>
  25. string(7) "8429735"
  26. ["name"]=>
  27. string(16) "Zdjęcie fotolia"
  28. }
  29. }
  30. }
  31. ["quantity"]=>
  32. int(1)
  33. ["quantity_refunded"]=>
  34. int(0)
  35. ["quantity_returned"]=>
  36. int(0)
  37. }
  38. [7]=>
  39. array(4) {
  40. ["datas"]=>
  41. array(1) {
  42. [1]=>
  43. array(1) {
  44. [0]=>
  45. array(9) {
  46. ["id_customization"]=>
  47. string(1) "7"
  48. ["id_address_delivery"]=>
  49. string(1) "0"
  50. ["id_product"]=>
  51. string(1) "3"
  52. ["id_customization_field"]=>
  53. string(1) "1"
  54. ["id_product_attribute"]=>
  55. string(1) "0"
  56. ["type"]=>
  57. string(1) "1"
  58. ["index"]=>
  59. string(1) "1"
  60. ["value"]=>
  61. string(7) "3749230"
  62. ["name"]=>
  63. string(16) "Zdjęcie fotolia"
  64. }
  65. }
  66. }
  67. ["quantity"]=>
  68. int(1)
  69. ["quantity_refunded"]=>
  70. int(0)
  71. ["quantity_returned"]=>
  72. int(0)
  73. }
  74. }


Jak wyświetlić w pętli wartości "value" ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Pyton_000
post
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


http://stackoverflow.com/questions/1019076...al-array-in-php

Musisz sobie trochę przerobić.
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: 14.10.2025 - 13:23