PHP Classes

array of objects

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  array of objects  
Subject:array of objects
Summary:unable to access entry in array of objects
Messages:5
Author:Brian Read
Date:2008-08-09 12:29:33
Update:2008-08-10 11:41:06
 

  1. array of objects   Reply   Report abuse  
Picture of Brian Read Brian Read - 2008-08-09 12:29:33
Hi

I don not seem to be able to get access to the data in what I think is an array of objects. Here is a fragment of a print_r of the array:

Array ( [1737251] => SimpleXMLElement Object ( [0] => Albania )
[1470158] => SimpleXMLElement Object ( [0] => Andorra )
)

I have tried [1737251][0] (null return) and [1737251]->0 fails syntax.

the array is built up from the return from an xml parse using SimpleXMLElement (which is probably obvious anyway).

any ideas?

cheers

Brian

There are 4 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.