Array formatting from XML web service using Set::combine

2011-02-27 Thread Greg Skerman
I'm having a bit of trouble with Set::combine when using it to deal with xml converted into an array. I am using the XML utility library, then Set::reverse() to flip it from an object into an array for easy traversal The problem is that if a child element only contains 1 record, it is formatted

Re: Array formatting from XML web service using Set::combine

2011-02-27 Thread Greg Skerman
sorry, second array should be: array( 'Result' = array( 0 = array( 'userID' = 5, 'name' = 'bill' ), 1 = array( 'userID' = 25, 'name' = 'jane' ) ) ); On Sun, Feb 27, 2011 at 11:34 PM, Greg Skerman