daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $filepath = dirname(__FILE__) . "your_xml_file.xml";
  4. $contents = file_get_contents($filepath);
  5. $elements = @new SimpleXmlElement($contents);
  6.  
  7. # do somethings with the elements
  8. print_r($elements);
  9.  
  10. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top