rsaturns

Portland, OR

tripplehelix.net

Age: 30

Network Engineer / Linux enthusiast, now hacking away at expect / drupal code to make my life easier and better.

9h
accepted PHP - SOAP Array stdClass
2d
answered PHP - SOAP Array stdClass
2d
comment PHP - SOAP Array stdClass
So I added the additional var_dump. I think I see where I'm getting confused. I need to loop foreach of the objects which in my case is 0, 1,2,3 etc. to return the property of userid. However each time I use the -> I end up just adding another array object named row. For example If I do foreach ($response as $row->row->row) I will end up with two more row array objects with only one item which is the next array.
2d
awarded Editor
2d
revised PHP - SOAP Array stdClass
added in additional var_dump output
2d
comment PHP - SOAP Array stdClass
When I attempt your suggestion foreach ($response->row as $row) I end up getting back PHP Warning: Invalid argument supplied for foreach(). You are correct though if I do $row->row[0]->userid it does in fact return the first item in the array. However I want it to keep looping for each item in the array and return them all.
2d
asked PHP - SOAP Array stdClass
Oct
15
comment select XML nodes by parent node attribute
I ended up using your approach via DOM I guess the question is what is the advantage / disadvantage of using DOM versus the way @bernie built it out using 'simplexml_load_string'?
Oct
15
accepted select XML nodes by parent node attribute
Oct
14
accepted PHP SOAP Array Evaluation
Oct
14
asked select XML nodes by parent node attribute
Jun
20
awarded Popular Question
Apr
3
answered PHP SOAP Array Evaluation
Apr
3
awarded Custodian
Apr
3
reviewed Approve suggested edit on PHP SOAP Array Evaluation
Apr
3
asked PHP SOAP Array Evaluation
Apr
3
awarded Popular Question
Sep
9
awarded Autobiographer
Jul
31
awarded Autobiographer
May
18
awarded Scholar
1 2 3 4 5