Advertisement
- $books = simplexml_load_string(‘books.xml’); echo $books->book[0]->categories->category[1];
- $books = simplexml_load_file(‘books.xml’); echo $books->book[0]->categories->category[1];
- $books = SimpleXMLElement(‘books.xml’); echo $books->book[0]->categories->category[1];
- $books = SimpleXML(‘books.xml’); echo $books->book[0]->categories->category[1];
Join our list
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.