PHP - XML: Retrieving Attribute ValuesTag: xml, node, attribute Category: PHP Basicpost: 23 Mar 2008 read: 236 PHP XML Tips - Part 4: Below, sample how to retrieve attribute value. First, create xml document like this:
Save as "cars.xml" within www/test/xml. Then create reader like this:
As you see, to read attribute value, we can use such as $data->manufacture['country']. |
| | Give Your Opinion | Recommend |
|

