RE: [PHP] Re: Converting XML into something PHP like....

From: Date: Tue, 20 Apr 2004 16:57:29 +0000
Subject: RE: [PHP] Re: Converting XML into something PHP like....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-184004@lists.php.net to get a copy of this message
Nunners wrote: Array != Object echo $data->Title .'<br>'; echo $data->avail_dataset[0]->dept_date .'<br>'; etc. pp There are some examples on how to convert your XML-Dump into an Array check out the comments over at php.net -- red [...] > Hi Folks, > > At the end of the email is a var_dump of my XML... > > I can go through and do foreach on each section, however, this is > completely useless in practice. > > How do I call things like $data["Title"] and > $data["avail_dataset"]["0"]["dept_date"]? > > At the moment, every time I do this, it comes out as NULL.... > > Cheers > Nunners [...]

« previous php.general (#184004) next »