Re: Problems seeing attributes with SimpleXml

From: Date: Wed, 03 Mar 2004 10:51:08 +0000
Subject: Re: Problems seeing attributes with SimpleXml
References: 1 2  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-335@lists.php.net to get a copy of this message
Thanks Rob Silly me - only looked on the xml-dev list :), but it's actually a switch() issue isn't it (assumues ints or something)? Philip Rob Richards wrote: > 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:

« previous php.xml.dev (#335) next »