Code has been added to clipboard!

Getting Values from XML Files

Example
<?php
  $xml = simplexml_load_file('bookstore.xml') or die('Failed to create an object');
  echo $xml->book[0]->name . "<br>";
  echo $xml->book[1]->name; 
?>