Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]problem z tabelą z imiennymi indeksami
Gwozdyk
post
Post #1





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 5.01.2008

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


Mam tabelę $lokacje z indeksami x, y, typ. W jaki sposób mogę sprawdzić wartość pola typ dla lokacji o konkretnym x1, y1?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Cysiaczek
post
Post #2





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




Pokaż strukturę, bo $lokacje to niewiele mówi.


--------------------
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
JoShiMa
post
Post #3





Grupa: Zarejestrowani
Postów: 1 374
Pomógł: 149
Dołączył: 1.03.2006

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


Cytat(Gwozdyk @ 2.11.2008, 17:23:09 ) *
Mam tabelę $lokacje z indeksami x, y, typ.


Tabelę czy tablicę? aaevil.gif


--------------------
Go to the top of the page
+Quote Post
Gwozdyk
post
Post #4





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 5.01.2008

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


chodzilo mi o tablice oczywiscie
to jak z tym jest?
Go to the top of the page
+Quote Post
Pilsener
post
Post #5





Grupa: Zarejestrowani
Postów: 1 590
Pomógł: 185
Dołączył: 19.04.2006
Skąd: Gdańsk

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


  1. <?php
  2. print_r($tablica);
  3. echo $tablica['typ'][1]
  4. ?>
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: 21.08.2025 - 05:49