Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SimpleXMLElement(
- @attributes =array(
- ['created'] => '02 Apr 2013 20:33:51'
- ['creator'] => 'George'
- ['format'] => 1.0
- )
- Device = SimpleXMLElement(
- @attributes = array(
- ['name'] => 'Lucy'
- ['old_name'] =>
- ['phone'] => '555-1212'
- ['state'] => 3
- ['type'] => 'blonde'
- ['version'] => '36C'
- )
- Configuration = SimpleXMLElement(
- @attributes = array(
- ['time'] => 418250031
- ['trait'] => 'available'
- )
- )
- )
- )
- How do I echo the 'name' so that my output says "Lucy"?
- I get that if I set this equal to $xml I would then echo $xml['created'] for the creation date. How do I get to consecutive levels of data?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement