Use simplexml_load_file to load xml file : XML File Read « XML « PHP






Use simplexml_load_file to load xml file

<?php
   $xml = simplexml_load_file("contact.xml");
   var_dump($xml);
?>

           
       








Related examples in the same category

1.XML file dump
2.simplexml_load_file: load xml and output