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.

Nov
11
awarded Notable Question
Oct
31
accepted Form elements as arrays #tree
Oct
31
comment Form elements as arrays #tree
That is exactly what I wanted. Thank you, perhaps one day working with Drupal won't feel like groping around in the dark.
Oct
31
asked Form elements as arrays #tree
Oct
30
accepted Dynamic Field Adition / Subtraction using FAPI
Oct
30
asked Dynamic Field Adition / Subtraction using FAPI
Oct
24
accepted PHP - SOAP Array stdClass
Oct
23
answered PHP - SOAP Array stdClass
Oct
23
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.
Oct
23
awarded Editor
Oct
23
revised PHP - SOAP Array stdClass
added in additional var_dump output
Oct
23
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.
Oct
22
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
1 2 3 4 5