[PHP] Objects and Traversing

2008-06-04 Thread VamVan
Hello Guys, Here is the object. How can I get access to the [Name] = access. People who help me with this can you please tell me what is the logic behind traversing the objects and how do you gather the values. Thanks. I am looking for an answer like this $queryResult-f-dsfsdf QueryResult

Re: [PHP] Objects and Traversing

2008-06-04 Thread Ted Wood
You should be able to access the Name field using this syntax: QueryResult-records[0]-sobjects[0]-fields-Name Reading from left-to-right: 1. accessing index 0 (zero) of the records array. 2. accessing index 0 (zero) of the objects array. 3. accessing the Name property of the fields SimpleXML

Re: [PHP] Objects and Traversing

2008-06-04 Thread Jim Lucas
VamVan wrote: Hello Guys, Here is the object. How can I get access to the [Name] = access. People who help me with this can you please tell me what is the logic behind traversing the objects and how do you gather the values. Thanks. I am looking for an answer like this $queryResult-f-dsfsdf