simplexml_load_file()

It returns  SimpleXMLElement object from an XML document

Example

<?php
$xml = simplexml_load_file(‘test.xml’);
?>

Share