On Wednesday 04 June 2014 01:43 PM, Siva prabu wrote: > I am using parse the <description> in PHP > > > test.xml:- > ```````` > > > <?xml version=.0" encoding="utf-8"?> > <rdf:RDF xmlns:rdf=ttp://www.w3.org/1-ns#"> > <item rdf:about=> > <title>Id</title> > <description>0</description> > </item> > <item rdf:about=> > <title>Total Images</title> > <description>0</description> > </item> > <item rdf:about=> > <title>Current Page</title> > <description>5</description> > </item> > <item rdf:about=> > <title>Total Pages</title> > <description>1</description> > </item></rdf:RDF> > > > > index.php:- > ```````` > > > > <?php > $xml=mplexml_load_file("test.xml"); > $total= > foreach($xml->item as $result) { > $a=result->description; > $total=otal+$a; > } > echo $total; > ?> > > > > > regards, > @gsivaprabu > +91-9940-111-413 > <http://about.me/gsivaprabu> >
So? Whats the issue? I got the output as 6. -- ----- Karthikeyan A K +91 9444018524 _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc ILUGC Mailing List Guidelines: http://ilugc.in/mailinglist-guidelines