![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 131 Pomógł: 0 Dołączył: 28.08.2006 Ostrzeżenie: (0%) ![]() ![]() |
Problem wygląda następująco.
W xmlu mam sobie pewne ustawienia, ich schemat wygląda tak:
mam teraz taki problem, że chcę sprawdzić, czy wartość z _GET`a nie równa się któremuś znacznikowi-
no i in_array() wywala błąd Cytat Wrong datatype for second argument -gdy odkomentuję each to owszem, zaczyna działać, ale tylko dla pierwszego znacznika.... jak rozwiązać mój problem?
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 131 Pomógł: 0 Dołączył: 28.08.2006 Ostrzeżenie: (0%) ![]() ![]() |
przed zastosowaniem each($array)
Kod object(SimpleXMLElement)#2 (3) { ["name"]=> object(SimpleXMLElement)#4 (1) { ["@attributes"]=> array(1) { ["value"]=> string(3) "sth" } } ["second"]=> object(SimpleXMLElement)#5 (1) { ["@attributes"]=> array(1) { ["value"]=> string(3) "foo" } } ["third"]=> object(SimpleXMLElement)#6 (1) { ["@attributes"]=> array(1) { ["value"]=> string(3) "bar" } } } po: Kod ray(4) { [1]=> object(SimpleXMLElement)#6 (1) { ["@attributes"]=> array(1) { ["value"]=> string(3) "sth" } } ["value"]=> object(SimpleXMLElement)#6 (1) { ["@attributes"]=> array(1) { ["value"]=> string(3) "sth" } } [0]=> string(4) "name" ["key"]=> string(4) "name" }
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 4.10.2025 - 14:25 |