Re: Problems seeing attributes with SimpleXml
| From: | Rob Richards | Date: | Wed, 03 Mar 2004 10:29:07 +0000 |
| Subject: | Re: Problems seeing attributes with SimpleXml | ||
| References: | 1 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-334@lists.php.net to get a copy of this message | ||
You need to do:
switch((string) $rating['type']) {
Theres a thread about this on the internals list.
Rob
From: "Philip Fletcher" philip@stutchbury.com
> I'm running through the SimpleXml examples on
http://uk.php.net/simplexml.
> Unfortunately I can't get Example 4 to work as advertised. When I do a
> var_dump($xml) the $rating['type'] attributes do show up: