Re: [PHP] Re: Example from www.php.net
Timothy Murphy wrote: Timothy Murphy wrote: I was trying Example 2147, which reads: --- 1 XML; $xml = simplexml_load_string($string); foreach($xml->foo[0]->attributes() as $a => $b) { echo $a,'="',$b,"\"\n"; } ?> --- ... However,
[PHP] Re: Example from www.php.net
Timothy Murphy wrote: > I was trying Example 2147, which reads: > --- > $string = << > 1 > > XML; > > $xml = simplexml_load_string($string); > foreach($xml->foo[0]->attributes() as $a => $b) { > echo $a,'="',$b,"\"\n"; > } > ?> > ---