Re: Converting XML into something PHP like....

From: Date: Tue, 20 Apr 2004 16:35:03 +0000
Subject: Re: Converting XML into something PHP like....
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11982@lists.php.net to get a copy of this message
How do I call things like $data["Title"] and $data["avail_dataset"]["0"]["dept_date"]?
You got an object in your result. So you have to do it like this: echo $data->title; echo $data->avail_dataset->avail_record[0]->dept_date; If you want an array you have to set another parameter for XML_Unserializer [...] $options = array("parseAttributes" => true, "complexType" => "array"); $unserializer = &new XML_Unserializer($options); [...] hth, tobias.

« previous php.pear.general (#11982) next »