RE: [PHP] data into an array
| From: | Rudolf Visagie | Date: | Tue, 05 Mar 2002 06:41:32 +0000 |
| Subject: | RE: [PHP] data into an array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87234@lists.php.net to get a copy of this message | ||
Hi Craig
You need to use the XML DOM functions (see the PHP manual) and it should be
a well formed XML document e.g.
<Document>
<Share>
<symbol>RHAT</symbol>
<price>6.82</price>
<date>3/4/2002</date>
<time>3:59pm</time>
<change>0.32</change>
<change_percent></change_percent>
<open>6.59</open>
<high>6.99</high>
<low>6.53</low>
<volume>932400</volume>
</Share>
</Document>
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:rudolf@dhsolutions.co.za>
Tel: 011 2655478
Cell: 082 895 1598
-----Original Message-----
From: Craig Westerman [mailto:westerman@chanuteks.com]
Sent: Tuesday, March 05, 2002 8:30 AM
To: php-general-list
Subject: [PHP] data into an array
I'm retrieving data from a service. The data is in the following format.
<symbol>RHAT</symbol>
<price>6.82</price>
<date>3/4/2002</date>
<time>3:59pm</time>
<change>0.32</change>
<change_percent></change_percent>
<open>6.59</open>
<high>6.99</high>
<low>6.53</low>
<volume>932400</volume>
How can I insert the data values into an array?
Thanks
Craig ><>
westerman@chanuteks.com